免费注册 查看新帖 |

Chinaunix

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

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

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

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

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

export LANG=xxxxx

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

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

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

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

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

Q3) How do I set a system default locale ?

A3) The system default locale can be set in the /etc/default/init file. -- Example excerpted from /etc/default/init --

# # 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

The system must be rebooted after modifying the /etc/default/init file in order for the changes to take effect.


Q4) How do I set a user specific locale ?

A4) 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_*

Examples: sh, ksh - bourne and korn shell syntax: LANG=en_US; export LANG LC_ALL=en_US;export LC_ALL

csh - 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