Find the answer to your Linux question:
Results 1 to 2 of 2
My current system default locale setting is: #locale LANG= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= I generate zh_CN.UTF-8 sucessfully using "locale-gen" #locale -a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    7

    Question Help-how to set the default locale


    My current system default locale setting is:

    #locale
    LANG=
    LC_CTYPE="POSIX"
    LC_NUMERIC="POSIX"
    LC_TIME="POSIX"
    LC_COLLATE="POSIX"
    LC_MONETARY="POSIX"
    LC_MESSAGES="POSIX"
    LC_PAPER="POSIX"
    LC_NAME="POSIX"
    LC_ADDRESS="POSIX"
    LC_TELEPHONE="POSIX"
    LC_MEASUREMENT="POSIX"
    LC_IDENTIFICATION="POSIX"
    LC_ALL=

    I generate zh_CN.UTF-8 sucessfully using "locale-gen"

    #locale -a
    C
    POSIX
    en_US
    en_US.utf8
    zh_CN
    zh_CN.gb18030
    zh_CN.gbk
    zh_CN.utf8

    I use "export LC_ALL=zh_CN.UTF-8" to set system locales. But after reboot, it back to "POSIX" again.

    Now I wonder how to set my system default locale to “zh_CN.UTF-8” permanently?

    What files should I change? or use what command?

    Thanks a lot!!!!

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    check the init scripts.
    Maybe something sets it to postix at boot.
    A good temp solution. Make a bootscript that does:
    Code:
    export LC_ALL=zh_CN.UTF-8
    Hope that helps.
    New Users, please read this..
    Google first, then ask..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •