* gnu/gcj/convert/IOConverter.java: Add `646' alias.
authorTom Tromey <tromey@redhat.com>
Fri, 17 Aug 2001 18:09:24 +0000 (18:09 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 17 Aug 2001 18:09:24 +0000 (18:09 +0000)
From-SVN: r44965

libjava/ChangeLog
libjava/gnu/gcj/convert/IOConverter.java

index ae57a887d69e7aa74626acc14bd2df0057889db2..12c86fc5cc76b16b0cc8bb453b2ec714835fc847 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-17  Tom Tromey  <tromey@redhat.com>
+
+       * gnu/gcj/convert/IOConverter.java: Add `646' alias.
+
 2001-08-17  Hans-J. Boehm <Hans_Boehm@hp.com>
 
        * BigInteger.java: fix right shifts by nonzero multiples of 32.
index ccb994f56ef1150097fd8c67c46788184adaff53..353f31c609cde69b48035f86ac8c20c68c6a31da 100644 (file)
@@ -27,6 +27,11 @@ public abstract class IOConverter
     // Manually maintained aliases.  Note that the value must be our
     // canonical name.
     hash.put ("iso-latin-1", "8859_1");
+    // On Solaris the default encoding, as returned by nl_langinfo(),
+    // is `646' (aka ASCII), but the Solaris iconv_open() doesn't
+    // understand that.  We work around the problem by adding an
+    // explicit alias for Solaris users.
+    hash.put ("646", "ASCII");
     // All aliases after this point are automatically generated by the
     // `encodings.pl' script.  Run it to make any corrections.
     hash.put ("ansi_x3.4-1968", "ASCII");