This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: `646' encoding alias
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Subject: Patch: FYI: `646' encoding alias
- From: Tom Tromey <tromey at redhat dot com>
- Date: 17 Aug 2001 12:41:53 -0600
- Reply-To: tromey at redhat dot com
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");