linux中的每线程语言环境

Ale*_*der 2 c linux internationalization

可以在Linux中指定每个线程吗?

use*_*104 5

是的,你有点可以做到.但是不是per-thead,而只是per-call,使用locale_t结构.

在POSIX上阅读更多相关信息:

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

和Ulrich Dreppper关于什么进入glibc 2.1的dedsgin文件:

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

  • `uselocale`(http://www.opengroup.org/onlinepubs/9699919799/functions/uselocale.html#)确实允许您设置线程本地语言环境. (3认同)