* unrecognized character in input stream
@ 2002-06-13 6:40 Olivier LF
2002-06-13 7:45 ` Tom Tromey
0 siblings, 1 reply; 2+ messages in thread
From: Olivier LF @ 2002-06-13 6:40 UTC (permalink / raw)
To: java
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=unknown-8bit, Size: 1106 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Test.java --]
[-- Type: text/x-java; charset=unknown-8bit, Size: 45 bytes --]
public class Test
{
/** Hüffihütte */
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: unrecognized character in input stream
2002-06-13 6:40 unrecognized character in input stream Olivier LF
@ 2002-06-13 7:45 ` Tom Tromey
0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2002-06-13 7:45 UTC (permalink / raw)
To: Olivier LF; +Cc: java
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 419 bytes --]
>>>>> "Olivier" == Olivier LF <olivier@zipworld.com.au> writes:
Olivier> tournesol:~$ gcj --encoding=UTF-8 -c Test.java
Olivier> Test.java:3: unrecognized character in input stream.
Olivier> /** Hüffihütte */
Olivier> ^
You're telling gcj that your input file is encoded using UTF-8.
However, that isn't the case. It is encoded using ISO-8859-1.
Try using --encoding=ISO-8859-1.
Tom
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-13 14:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-13 6:40 unrecognized character in input stream Olivier LF
2002-06-13 7:45 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).