OSDN Git Service

* lex.c (java_new_lexer): Longer error message.
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Feb 2001 17:50:30 +0000 (17:50 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Feb 2001 17:50:30 +0000 (17:50 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39520 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/lex.c

index 5fc513a..4568110 100644 (file)
@@ -1,3 +1,7 @@
+2001-02-06  Tom Tromey  <tromey@redhat.com>
+
+       * lex.c (java_new_lexer): Longer error message.
+
 2001-02-05  Jeff Sturm  <jeff.sturm@commerceone.com>
            Alexandre Petit-Bianco  <apbianco@cygnus.com>
 
index 06eb35d..20e37d8 100644 (file)
@@ -293,7 +293,7 @@ java_new_lexer (finput, encoding)
     }
 
   if (enc_error)
-    fatal_error ("unknown encoding: `%s'", encoding);
+    fatal_error ("unknown encoding: `%s'\nThis might mean that your locale's encoding is not supported\nby your system's iconv(3) implementation.  If you aren't trying\nto use a particular encoding for your input file, try the\n`--encoding=UTF-8' option.", encoding);
 
   return lex;
 }