免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3168 | 回复: 2
打印 上一主题 下一主题

如何把locale从当前的:C iso_8859_1 改到 en_US iso_8859_1? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-05-22 19:09 |只看该作者 |倒序浏览
如题,请高手指点!

论坛徽章:
0
2 [报告]
发表于 2005-05-22 19:48 |只看该作者

如何把locale从当前的:C iso_8859_1 改到 en_US iso_8859_1?

多谢回复!\r\n我试过了,在export LANG=\"en_US\"之前:\r\nlocale -a  的结果如下:\r\n# locale -a\r\nPOSIX\r\nC\r\niso_8859_1\r\n之后仍是:\r\n# locale -a\r\nPOSIX\r\nC\r\niso_8859_1\r\n我希望能看到\r\n# locale -a\r\nPOSIX\r\nen_US\r\niso_8859_1这样的结果,能不能进一步指点指点?多谢!

论坛徽章:
0
3 [报告]
发表于 2005-05-23 11:52 |只看该作者

如何把locale从当前的:C iso_8859_1 改到 en_US iso_8859_1?

Q3) How do I set a system default locale ? \r\n\r\nA3) The system default locale can be set in the /etc/default/init file. -- Example excerpted from /etc/default/init -- \r\n\r\n# # Lines of this file should be of the form VAR=value, where VAR is one of # TZ, LANG, or any of the LC_* environment variables. LANG=en_US LC_ALL=en_US \r\n\r\nThe system must be rebooted after modifying the /etc/default/init file in order for the changes to take effect. \r\n\r\n\r\nQ4) How do I set a user specific locale ? \r\n\r\nA4) A locale can be set for a user in their user initialization files such as $HOME/.profile or $HOME/.cshrc (or other shell-specific initialization file). Use the shell-specific syntax for setting any of the variables needed: LANG and LC_* \r\n\r\nExamples: sh, ksh - bourne and korn shell syntax: LANG=en_US; export LANG LC_ALL=en_US;export LC_ALL \r\n\r\ncsh - c shell syntax: setenv LANG en_US setenv LC_ALL en_US
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP