[BUG REPORT] File names that contain UTF8 characters are unnecessarily escaped in 'git status .' messages
- From
- Yuri <yuri@rawbw.com>
- Date
- May 26, 2021, 22:47 UTC
- Message-ID
- <f7e2e271-dcec-2886-f33e-62778a429850@rawbw.com>
I have the file that contains the "∞" character in its name.
When this file was modified, 'git status .' showed it as:
> modified: "file-name-\342\210\236.ext"
It replaced the UTF8 character with its byte representation, and put the file name in quotes.
git should show such files without escaping when the terminal is able to show UTF8 characters because escaping decreases readability.
$ env | grep TERM COLORTERM=truecolor TERM=xterm-256color
$ env | grep LANG LANG=C.UTF-8
$ env | grep CTYPE LC_CTYPE=en_US.UTF-8
Thanks,
Yuri