美文网首页
locale获取本地语言环境,并设置

locale获取本地语言环境,并设置

作者: 催化剂 | 来源:发表于2022-08-30 08:16 被阅读0次

    [root@Dexin01 icon]# locale

    LANG=zh_CN.UTF-8

    LC_CTYPE="zh_CN.UTF-8"

    LC_NUMERIC="zh_CN.UTF-8"

    LC_TIME="zh_CN.UTF-8"

    LC_COLLATE="zh_CN.UTF-8"

    LC_MONETARY="zh_CN.UTF-8"

    LC_MESSAGES="zh_CN.UTF-8"

    LC_PAPER="zh_CN.UTF-8"

    LC_NAME="zh_CN.UTF-8"

    LC_ADDRESS="zh_CN.UTF-8"

    LC_TELEPHONE="zh_CN.UTF-8"

    LC_MEASUREMENT="zh_CN.UTF-8"

    LC_IDENTIFICATION="zh_CN.UTF-8"

    LC_ALL=

    通过export命令设置 

    export LANG=zh_CN.UTF-8

    export LC_ALL=zh_CN.UTF-8

    export LANGUAGE=zh_CN.UTF-8

    相关文章

      网友评论

          本文标题:locale获取本地语言环境,并设置

          本文链接:https://www.haomeiwen.com/subject/wfihnrtx.html