From: Yuri <yuri@rawbw.com>
To: Git Mailing List <git@vger.kernel.org>
Subject: [BUG REPORT] File names that contain UTF8 characters are unnecessarily escaped in 'git status .' messages
Date: Wed, 26 May 2021 15:47:15 -0700 [thread overview]
Message-ID: <f7e2e271-dcec-2886-f33e-62778a429850@rawbw.com> (raw)
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
next reply other threads:[~2021-05-26 22:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-26 22:47 Yuri [this message]
2021-05-26 23:32 ` [BUG REPORT] File names that contain UTF8 characters are unnecessarily escaped in 'git status .' messages Junio C Hamano
2021-05-26 23:41 ` Yuri
2021-05-27 4:56 ` Torsten Bögershausen
2021-05-27 14:02 ` Jeff King
2021-05-27 20:50 ` Yuri
2021-05-28 4:39 ` Bagas Sanjaya
2021-05-28 4:45 ` Yuri
2021-05-29 9:27 ` Torsten Bögershausen
2021-05-30 21:44 ` Jeff King
2021-05-30 21:55 ` Yuri
2021-05-31 1:14 ` Thomas Guyot
2021-05-31 3:35 ` Bagas Sanjaya
2021-05-30 22:23 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f7e2e271-dcec-2886-f33e-62778a429850@rawbw.com \
--to=yuri@rawbw.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).