看shell命令源码时发现在main函数开始的地方会先设置本地环境,就在网上找了一些文章,先收藏了,以后整理。
函数:
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
Linux国际化 http://blog.chinaunix.net/uid-10995602-id-2918666.html
看shell命令源码时发现在main函数开始的地方会先设置本地环境,就在网上找了一些文章,先收藏了,以后整理。
函数:
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
Linux国际化 http://blog.chinaunix.net/uid-10995602-id-2918666.html