kaffe/io/ConverterAlias.java and "Default"
Archie Cobbs
archie at whistle.com
Mon Jan 31 13:57:24 PST 2000
Marcus G. Daniels writes:
> 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);
I fixed this a slightly different way. Let me know if you have
any problems.
-Archie
___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
More information about the kaffe
mailing list