git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG REPORT] File names that contain UTF8 characters are unnecessarily escaped in 'git status .' messages
@ 2021-05-26 22:47 Yuri
  2021-05-26 23:32 ` Junio C Hamano
  0 siblings, 1 reply; 14+ messages in thread
From: Yuri @ 2021-05-26 22:47 UTC (permalink / raw)
  To: Git Mailing List

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


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2021-05-31  3:36 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 22:47 [BUG REPORT] File names that contain UTF8 characters are unnecessarily escaped in 'git status .' messages Yuri
2021-05-26 23:32 ` 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

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).