This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: Java: Improve character encoding error messages
- From: Andrew Haley <aph at redhat dot com>
- To: Bryce McKinlay <mckinlay at redhat dot com>
- Cc: java-patches at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sat, 22 May 2004 11:44:10 +0100
- Subject: Patch: Java: Improve character encoding error messages
- References: <40AE9F91.8020103@redhat.com>
Bryce McKinlay writes:
> This patch improves GCJ's error message when a character in the source
> file is not recognised in the encoding being used. It prints the name of
> the encoding being used, which should help people figure out what is
> going on a little easier.
>
> OK to commit?
>
> Bryce
>
> 2004-05-21 Bryce McKinlay <mckinlay@redhat.com>
>
> * lex.c (java_new_lexer): Set `encoding'.
> (java_read_char): Improve error message for unrecognized characters.
> * lex.h (struct java_lexer): New field `encoding'.
OK.
Andrew.