[kaffe] alias for US-ASCII (cvs diff patch included)

Vesa Kaihlavirta vpkaihla@cc.jyu.fi
Sat, 28 Sep 2002 12:51:08 +0300


--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Howdy, I've got a simple patch (from the output of cvs diff -u) here 
that adds US-ASCII to be an alias for ASCII in java.io.ConverterAlias. 
US-ASCII is the real name for the encoding, and all the other VM's 
accept it.

This didn't work earlier: 'String.getBytes("US-ASCII");' after the patch,
it works.

--
V.K.

--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="kaffe-us-ascii.patch"

Index: libraries/javalib/kaffe/io/ConverterAlias.java
===================================================================
RCS file: /cvs/kaffe/kaffe/libraries/javalib/kaffe/io/ConverterAlias.java,v
retrieving revision 1.13
diff -u -r1.13 ConverterAlias.java
--- libraries/javalib/kaffe/io/ConverterAlias.java	28 Aug 2001 15:00:59 -0000	1.13
+++ libraries/javalib/kaffe/io/ConverterAlias.java	28 Sep 2002 09:49:02 -0000
@@ -49,6 +49,7 @@
 	alias.put("EUCJP",              "EUC_JP");
 	alias.put("EUC-JP",             "EUC_JP");
 	alias.put("EUCJIS",             "EUC_JP");
+	alias.put("US-ASCII",		"ASCII");
 	/* add more here */
     }
 

--ZPt4rx8FFjLCG7dd--