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]

unrecognized character in input stream


I am not sure if this is a bug or just me not using the right
compilation flags.

Each time I try to compile a file with non ascii characters in comments, 
I get an error message similar to this one:


tournesol:~$ gcj --encoding=UTF-8 -c Test.java 
Test.java:3: unrecognized character in input stream.
      /** Hüffihütte */
                       ^
Test.java:4: unrecognized character in input stream.
   }
    ^
2 errors



Adding/removing --encoding=UTF-8 does not help.
This is with a recent gcj from CVS:

tournesol:~$ gcj -v
Reading specs from
/usr/local/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Reading specs from
/usr/local/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libgcj.spec
rename spec lib to liborig
Configured with: ../../program/cvs/gcc/configure --prefix=/usr/local/gcc
--enable-shared --enable-threads=posix --enable-languages=c++,java
Thread model: posix
gcc version 3.2 20020518 (experimental)



I attach a small Test.java example.

Olivier

-- 
----------------------------------------------------------------------
Olivier Louchart-Fletcher
Email: olivier@zipworld.com.au
public class Test
{
   /** Hüffihütte */
}

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