-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filter-branch gets an error when file path contains a CJK char #1682
Comments
This issue still persists in 2.22.0:
Error when the path contains a CJK char:
|
I cannot reproduce this. Unfortunately, this report contains only incomplete information, so I had to execute this on a test repository over here. This is my output:
This is with v2.22.0:
Maybe it has something to do with your Windows version? I tried this on the latest Windows 10. |
I did a further investigation and found that the command works on another computer. After some investigation it seems to be related with locale: For the computer that fails to run the command: $ locale
LANG=C.UTF-8
LC_CTYPE="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_ALL= And for the computer the succeeds to run the command: $ locale
LANG=zh_TW.UTF-8
LC_CTYPE="zh_TW.UTF-8"
LC_NUMERIC="zh_TW.UTF-8"
LC_TIME="zh_TW.UTF-8"
LC_COLLATE="zh_TW.UTF-8"
LC_MONETARY="zh_TW.UTF-8"
LC_MESSAGES="zh_TW.UTF-8"
LC_ALL= Is there somewhere for the locale to be defined? There's nothing special in the |
You can define it locally in Having said that, it seems to be notoriously hard to get this right. IIRC we had it defined to |
Closing this as stale. |
Setup
defaults?
Details
Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
The command should run normally without an error.
An error occurred during rewriting:
If "中文" is replaced by "English". The command works fine:
The text was updated successfully, but these errors were encountered: