2010-02-17 52 views

回答

3

setlocale(3)更改为整个过程。

+2

'uselocale(3)'设置以每个线程语言环境。 – 2014-07-25 19:00:36

4

是的,你可以做到这一点。但不是per-thead,而是仅使用locale_t结构进行每次调用。

了解更多关于在POSIX:

http://www.opengroup.org/onlinepubs/9699919799/functions/newlocale.html

和什么了when到的glibc 2.1乌尔里希Dreppper的dedsgin文件:

http://people.redhat.com/drepper/tllocale.ps.gz

+3

'uselocale'(http://www.opengroup.org/onlinepubs/9699919799/functions/uselocale.html#)确实让您设置线程本地语言环境。 – caf 2010-02-17 18:01:57