I am building a piece of software for sorting book indexes in different languages. It uses Perl, and keys off of the locale. I am developing it on Unix, but it needs to be p
Win32::OLE::NLS gives you access to that part of the system. It provides you CompareString and the necessary tools to obtain the necessary locale id.
CompareString
In case you want/need to locate the system documentation, the underlying system call is named CompareStringEx.
CompareStringEx