mdespeuilles
mdespeuilles

Reputation: 178

How to show properly accents in git diff output

When I run git diff command, in the files list all files with accents are poorly displayed :

 git diff --name-status xxxx yyyyyy

return

M       "\303\251\303\251.txt"

How I can preserve accents to have this ? :

M       "éé.txt"

Thanks

Edit : I specify that the file is encoded in UTF-8 and I tried with git 2.3.2 from OSX and git 1.9.1 from Ubuntu

Upvotes: 3

Views: 742

Answers (1)

VonC
VonC

Reputation: 1323175

You can simply do:

git config core.quotepath off   
# or
git config --global core.quotepath off

See Git for Windows Unicode Support -- Settings.

By default, git will print non-ASCII file names in quoted octal notation, i.e. "\nnn\nnn...".
This can be disabled with:

 git config [--global] core.quotepath off

I just tested it with the latest Git for Windows 2.3.5.

Upvotes: 5

Related Questions