aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2001-02-07 17:50:30 +0000
committerTom Tromey <tromey@gcc.gnu.org>2001-02-07 17:50:30 +0000
commit77aff9f9c7040ead13800e65b5c168a779dbd85c (patch)
tree489724abc08fcab39c4a428d309e35261e45281d
parent6cd87539f27d470160ca52ffd48d3b850d3366f8 (diff)
downloadgcc-77aff9f9c7040ead13800e65b5c168a779dbd85c.zip
gcc-77aff9f9c7040ead13800e65b5c168a779dbd85c.tar.gz
gcc-77aff9f9c7040ead13800e65b5c168a779dbd85c.tar.bz2
* lex.c (java_new_lexer): Longer error message.
From-SVN: r39520
-rw-r--r--gcc/java/ChangeLog4
-rw-r--r--gcc/java/lex.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 5fc513a..4568110 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -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>
diff --git a/gcc/java/lex.c b/gcc/java/lex.c
index 06eb35d..20e37d8 100644
--- a/gcc/java/lex.c
+++ b/gcc/java/lex.c
@@ -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;
}