Issue 23800: Support POSIX uselocale interface for thread-specific locale settings (original) (raw)

POSIX 2008 provides a system interface, uselocale, to set locales individually on a thread basis rather than just process global, as currently supported with locale.setlocale(). uselocale is supported in most current GNU libc, BSD, and OS X releases. While there is currently a third-party package available in PyPI, it currently doesn't claim to support Python 3 and it would be good to have uselocale as part of the standard library where available.

http://pubs.opengroup.org/stage7tc1/functions/uselocale.html

https://github.com/wichert/xlocale