This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

Re: GCJ and Sun going GPL (again)


fernando@lozano.eti.br wrote:
> 1. International keyboard layouts won't work with Linux. I have to choose between typing {. <. \ and
> other symbols required for Java programas or accented characters like ï. ï. ï that I need in
> comments and strings.

Do you mean in source code? If so, it's not safe to use non-ASCII
characters in Java source files, they should always be unicode-escaped,
e.g. "\u00e0". This has always been the case. I agree that it's stupid,
and that there should be some kind of encoding declaration for source
files (or perhaps just say that they must all be UTF-8), but you can't
really fault the Java compiler for this since as soon as you tried to
compile on a system with a different locale set your strings would
break.
-- 
Chris Burdess


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