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]

--encoding


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

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