String comparison based on system locale
I'm looking for a way to order an array of strings based on the system locale. As I'm writing this I'm wondering if the concept of system locale is cross platform enough for java to support it...
Anyway what I mean is this:
On linux there is an environment variable called LC_COLLATE which can be used by all programs to deside how to order strings "alphabetically". This is due to the large number of regional variations on how to handle Upper and Lower case / wite space / accents / punctuation etc. There are ascociated libraries for doing this so that programs do not need to be aware of every locale in advance.
Am I going to have to write my own JNI Comparator for this or (long shot) is there a built in comparator which will order based on the system locale?
Thanks for your time.