stephenc / java-iso-tools

A fork of JIIC hosted on github
http://github.com/stephenc/java-iso-tools/wiki
GNU Lesser General Public License v2.1
78 stars 45 forks source link

toUpperCase() should explicitly use Locale.ROOT to avoid issues #15

Open axelfontaine opened 8 years ago

axelfontaine commented 8 years ago

In places like Turkey "i".toUpperCase() results in Ì instead of I, which causes this library to break in a number of places. Changing all str.toUpperCase() calls to str.toUpperCase(Locale.ROOT) fixes the issue.