cygwin下git log无法显示中文(乱码)
大家讲道理
大家讲道理 2017-04-21 11:15:55
0
3
724

环境是cygwin,git提交是可以用中文,但是显示log却乱码

git的全局配置如下

单独配置

cygwin语系配置如下

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(3)
Peter_Zhu
export LESSCHARSET=utf-8
小葫芦

First of all, it is recommended to check whether the version of Cygwin is 1.7.x. This version of Cygwin can already display and input Chinese very well and does not require additional configuration.

In my Cygwin, the locale configuration is:

$ 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_ALL=

Note that the setting of LC_ALL is different from yours. It is recommended to try modifying it. Good luck.

阿神
git config --global core.quotepath false  

http://blog.fealdia.org/2010/01/16/git-status-utf-8-umlaut-tip/

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template