kaffe/io/ConverterAlias.java and "Default"

Marcus G. Daniels mgd at swarm.org
Sun Jan 30 14:03:20 PST 2000



It appears that the "Default" charset alias isn't handled in the right way.
I see there's a class CharToByteDefault, but the alias method
forces the name to upper case.  (A result of this is that unicode.tbl
file isn't located in the right way with Cygwin.)

diff -c -r1.7 ConverterAlias.java
*** libraries/javalib/kaffe/io/ConverterAlias.java	1999/10/25 17:31:26	1.7
--- libraries/javalib/kaffe/io/ConverterAlias.java	2000/01/30 21:34:31
***************
*** 47,53 ****
       * @return alias if found, name if not.
       */
      static String alias(String name) {
! 	name = name.toUpperCase();
  	String alternate = (String)alias.get(name);
  	if (alternate == null) {
  	    return (name);
--- 47,54 ----
       * @return alias if found, name if not.
       */
      static String alias(String name) {
!         if (!name.equals ("Default"))
! 	    name = name.toUpperCase();
  	String alternate = (String)alias.get(name);
  	if (alternate == null) {
  	    return (name);


More information about the kaffe mailing list