Windows 10 企业版(俄罗斯屋顶毡,带有 MUI 的屋顶毡)+ git for windows。
从命令行工作时,西里尔字母通过反斜杠显示:
c:\somegitrepo>git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed: (use "git reset HEAD <file>..." to unstage)
new file: "\320\236\321\202\320\277\321\203\321\201\320\272\320\260/2018Otpusk 2018\321\20501.doc"
c:\somegitrepo
这可以通过操作系统的设置,或者通过 git 本身的设置,或者在特定存储库的级别设置来纠正吗?
想看:
C:\somegitrepo>git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
Untracked files:
(use "git add <file>..." to include in what will be committed)
Отпуска/Otpusk 2018х01.doc
nothing added to commit but untracked files present (use "git add" to track)
在区域选项的控制面板中是“不支持 Unicode 的程序的当前语言” - 俄语(俄罗斯)。
从源代码树控制台工作时出现类似问题,选择了“使用系统 Git”设置。
默认情况下,git程序在显示路径时(如
state,ls-files等命令diff),0x80将字符替换为带有八进制代码的代码(例如,\320\272对于“k”字符)。从版本 1.5.3开始,可以使用配置参数
core.quotepath更改此行为(取值true/false或on/off)。要仅在当前存储中禁用此类转换,请运行:
对于全局禁用添加选项
--global: