This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
--encoding
- To: Java Discuss List <java at gcc dot gnu dot org>
- Subject: --encoding
- From: Tom Tromey <tromey at redhat dot com>
- Date: 06 Feb 2001 14:28:13 -0700
- Reply-To: tromey at redhat dot com
Right now if the locale's encoding isn't supported by iconv(), gcj
will bomb.
This is probably what we want. However, it is also confusing to users
who don't understand what is going on. See, for instance, PR 1840.
I think we'll probably get a lot of reports about this, as Solaris in
particular seems to support encodings in locales without supporting
those same encodings in iconv().
I think we should change the code in lex.c to print a more verbose
message. Maybe something like this:
unknown encoding: %s
This might mean that your locale's encoding is not supported
by your system's iconv() implementation. If you aren't trying
to use a particular encoding for your input file, try
the `--encoding=UTF-8' option.
Comments? Improved text suggestions?
Tom