This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/11755] non-ASCII characters treated as errors even in comments if LANG=C


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11755



------- Additional Comments From tromey at gcc dot gnu dot org  2003-08-01 01:06 -------
gcj uses iconv() on platforms where it is available.
gcj also tries to use the locale's encoding by default.

On Linux, in the C locale, you are using ASCII.
glibc's iconv() is strict in this situation and will
reject non-ASCII characters.

The fix is to use something like "gcj --encoding=ISO-8859-1".

You don't see this with javac since Sun uses their own
encoding converters, and their ASCII converter isn't
strict about bytes whose high bit is set.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]