linux 乱码问题 发表于 2018-10-18 | 热度 ℃ | 字数统计 224 | 阅读时长 1 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950$ git st# ???? master??????,??????$ localelocale: Cannot set LC_CTYPE to default locale: No such file or directorylocale: Cannot set LC_ALL to default locale: ?????????LANG=zh_CN.UTF-8LC_CTYPE=UTF-8LC_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 LC_ALL="zh_CN.UTF-8"$ localeLANG=zh_CN.UTF-8LC_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=zh_CN.UTF-8$ git st# 位于分支 master无文件要提交,干净的工作区# 永久解决在 ~/.bashrc 中添加export LC_ALL="zh_CN.UTF-8"并执行source ~/.bashrc -------------感谢您的阅读 有问题请留言(或mailto:frostbelt@sina.cn)-------------