aspen0883 / xmlwise

Automatically exported from code.google.com/p/xmlwise
0 stars 0 forks source link

Problems with Non-English Locale #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run windows with Turkish
2. Make XMLWise parse a plist (or other XML-based  with a "dict" node

What is the expected output? What do you see instead?
No exceptions;

The upper-case form of the word "dict" under a Turkish Locale becomes "DİCT" 
(note the funky I) instead of "DICT"
This throws the following exception: java.lang.IllegalArgumentException: No 
enum constant xmlwise.Plist.ElementType.DİCT

What version of the product are you using? On what operating system?
Latest version (1.2) w/ Windows under a Turkish locale

Please provide any additional information below.
This actually works for any language-specific casing differences. In 
particular, the i -> İ in "dict" with Turkish was what I noticed.
Perhaps you could use a locale-unspecific uppercase function? I think passing 
"Locale.ENGLISH" to the toUpperCase function should do the job.

Original issue reported on code.google.com by Thaco...@gmail.com on 5 Jul 2014 at 5:36

GoogleCodeExporter commented 8 years ago
Lol sorry. Didn't see issue #11. *facepalm*

Original comment by Thaco...@gmail.com on 6 Jul 2014 at 1:23