This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
unrecognized character in input stream
- From: Olivier LF <olivier at zipworld dot com dot au>
- To: java at gcc dot gnu dot org
- Date: Thu, 13 Jun 2002 23:40:35 +1000
- Subject: 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 */
}