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]

Re: SIGSEGV in jc1


>>>>> "Hans" == Boehm, Hans <hans_boehm@hp.com> writes:

Hans> 1) The source files contain copyright (C in a circle, code 251)
Hans> symbols in comments.  I have no idea by what rules that's
Hans> legal/illegal.  But javac seems to accept it, but gcj doesn't.
Hans> (This stuff was written by real lawyers, not language lawyers.)

This has to do with your locale and the encoding of the source file.

javac by default assumes your locale uses Latin-1.  In this case the
copyright symbol is perfectly fine.

By default on Linux your locale uses ASCII.  The iconv implementation
on Linux is picky and will reject non-ASCII characters like the
copyright symbol.

You can work around this using `--encoding=ISO-8859-1' or something
like that.

A lot of people run into this.  Maybe we should address this before
3.0.  Anybody have a suggestion for a fix?

Hans> 2) I saw strange (IO related ?) failures when I tried to link
Hans> statically.

Send the error messages.

Tom


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