This is the mail archive of the java-patches@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]

Patch: FYI: `646' encoding alias


Following the discussion on the main list, I'm checking this in.
This should help Solaris users.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* gnu/gcj/convert/IOConverter.java: Add `646' alias.

Index: gnu/gcj/convert/IOConverter.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/convert/IOConverter.java,v
retrieving revision 1.4
diff -u -r1.4 IOConverter.java
--- gnu/gcj/convert/IOConverter.java 2001/06/27 21:56:08 1.4
+++ gnu/gcj/convert/IOConverter.java 2001/08/17 18:07:52
@@ -27,6 +27,11 @@
     // 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");


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