- 论坛徽章:
- 0
|
如何把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 |
|