It's all about the answers!

Ask a question

cannot fix platform line delimiters/encoding issue


Tierney McCaughrin (1631) | asked Apr 24 '08, 2:08 p.m.
I work on AIX/Unix and WindowsXP, with other teammates on XP, AIX, and Mac.
In Windows, when trying to load a project into a newly created repository workspace I get errors about "Unable to convert platform line delimiters" (see below)
I have both of my Jazz 1.0M6a client preferences set to use UTF-8 encoding with Unix line delimiters (though when the files were created, this may not have been the case). In AIX I have tried File->Convert Line delimiters (which has no affect). I have also tried making a small edit and delivering the change in AIX. Yet when I try to pick it up in Windows I get the same error. Do I have to create a new file from scratch or is there something else to try? (There are dozens of files that have developed this condition.)


Error Message when trying to Load Projects into a fresh repository workspace:
Error during download
Failed to download blah.java due to unknown encoding MacRoman. Team should agree on a common encoding
Unable to convert platform line delimiters: MacRoman

4 answers



permanent link
Dmitry Karasik (1.8k11) | answered Apr 24 '08, 2:08 p.m.
JAZZ DEVELOPER
On Thu, 24 Apr 2008 18:17:57 +0000, tierney wrote:

Error Message when trying to Load Projects into a fresh repository
workspace:
Error during download
Failed to download blah.java due to unknown encoding MacRoman. Team
should agree on a common encoding
Unable to convert platform line delimiters: MacRoman


This is a problem with encodings and not line delimeters per say.

Your Java VM does not have the MacRoman encoding. You and your team need
to agree on an encoding you all have (probably ISO-8859-1 or UTF-8) and
set that to all files.

- Dmitry

permanent link
Tierney McCaughrin (1631) | answered Apr 24 '08, 7:33 p.m.
Thank you for your help; maybe I'm not understanding correctly.

In AIX where I've got a usable workspace, I tried right clicking on the java file -> Properties->Text file encoding, and forcing it to UTF-8 (rather than what it was: default, "inherited from container: UTF-8").
This updated my org.eclipse.core.resources.prefs in the .settings folder which I delivered.
I went back to WinXP and tried to load again, but those files still showed up. I also tried editing the prefs file directly on WinXP.

Am I missing something?

Thank you,
Tierney McCaughrin

permanent link
Dmitry Karasik (1.8k11) | answered Apr 25 '08, 4:15 a.m.
JAZZ DEVELOPER
You need to commit the files in question to the repository once you've
changed their encoding in the preferences. I suggest you make some
whitespace modification, and commit.

After you do that they will be marked with the correct encoding in the
repository and you will be able to load them on your other system.

- Dmitry

permanent link
Tierney McCaughrin (1631) | answered Apr 28 '08, 11:22 a.m.
Thank you Dmitry.
It seems that in addition to following the above steps for every file, I must also pick up the changes in Windows in a new Jazz repository workspace.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.