logo       

RFC: Making character encoding aliases case-insensitive: msg#00179

java.classpath.patches

Subject: RFC: Making character encoding aliases case-insensitive

Hi,

To reduce the mess of character encoding aliases a little bit, I propose
we make them case insenstive. This reduces the number of aliases a bit
and also makes us better compatible with the JDK, which also treats
encoding names as case insensitive.

The only downside I can think of is that existing startup scripts that
specify an additional encoding alias that is not in lower case, will
break.

Any objections or comments?

Regards,
Jeroen

2005-03-26 Jeroen Frijters <jeroen@xxxxxxxxxxxx>

* gnu/classpath/SystemProperties.java (static): Converted
encoding aliases
to lower case and removed redudant aliases.
* gnu/java/io/EncodingManager.java
(findEncoderConstructor, findDecoderConstructor): Convert
encoding to
lowercase before looking for alias.
* java/lang/System.java (getProperties): Removed uppercase
aliases from
comments.

Attachment: encoding-alias.patch.txt
Description: encoding-alias.patch.txt

_______________________________________________
Classpath-patches mailing list
Classpath-patches@xxxxxxx
http://lists.gnu.org/mailman/listinfo/classpath-patches
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise