Locales on OS X are quite broken, and on Linux (glibc) not enough, so you will have difficulty with sorting them successfully. The only way is to use the lowest common denominator, which is the language version of C. But if you are developing an application that actually depends on the useful mapping behavior in natural language, you need to do it on the same platform that you use in production. I suggest setting up a virtual box under Linux on your OS X machine.
Peter Eisentraut
source share