Community
Participate
Working Groups
I imported the source of org.eclipse.jdt.core using the PDE, but the source refused to compile. I got the following message: The project was not built since the source file /org.eclipse.jdt.core/src-jdtcore/org/eclipse/jdt/internal/compiler/parser/TerminalTokens.java could not be read. When I tried to open the file the editor displayed the following message: The file is unreadable using the "UTF-8" character encoding.
Got the same pb with file org/eclipse/jdt/core/compiler/InvalidInputException.java
How did you import the source? Using PDE import? CVS check out? Unzip?
Sorry, PDE Import.
Olivier, please see with Pascal what could be wrong.
The problem is that the editor is expecting the source code to be saved in UTF8 encoding. This is not the case. This is a general issue with Eclipse and encoding and it is not related to the compiler. If you set the encoding of the workspace to be Cp1252, it will work again.
Move to platform/Core. The encoding of the source file should be preserved. Changing the default encoding to UTF8 should not affect existing files which use a different encoding.
Forwarding to platform-text. The core just reads and writes bytes, we never interpret encoding (we don't even care if contents are text).
Pascal did you change the default encoding?
*** Bug 60294 has been marked as a duplicate of this bug. ***
I am not sure whether bug 60294 is really a dup. Text now (I20040427 and some previous builds) uses platform support to get the file's encoding. Moving to J Core to check whether they now also switched to the new encoding support (I think so).
Yes we did convert a while ago to new encoding story. Frederic - pls investigate.
Fixed since bug 39068. Verified on Linux-GTK with M8 build. Verified on Windows with I200405050200 build.