Patch looks correct according to these docs: <a href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/uselocale.html">http://pubs.opengroup.org/onlinepubs/9699919799/functions/uselocale.html</a><br><br>"If the newloc argument is a null pointer, the object returned is the current locale or LC_GLOBAL_LOCALE if there has been no previous call to uselocale() for the current thread."<br>

<br>Not sure if it handles the LC_GLOBAL_LOCALE part correctly though.<br><br>--<br>Joćo Matos