Skip to contentSkip to conversation

Special characters in file name

PATCH Tajti Ákos 5 participants 9 messages Jun 15, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Dear List,

I have a file named "árvíz.txt" in my repository. When modify that file and execute git diff, the first line looks like this:

\303\241rv\303\255z.txt +0 -0

Is there an option that (if specified) will get git to print "árvíz.txt" instead of this escaped string?

Thanks in advance,
Ákos Tajti

#1 lore raw
Quoted 7 lines · Tajti Ákos <akos.tajti <at> intland.com> writes:

Dear List,

I have a file named "árvíz.txt" in my repository. When modify that file and execute git diff, the first line looks like this:

\303\241rv\303\255z.txt +0 -0
Quoted 6 lines

Is there an option that (if specified) will get git to print "árvíz.txt" instead of this escaped string?

Thanks in advance,
Ákos Tajti

please, refresh your memory )))
http://comments.gmane.org/gmane.comp.version-control.git/177849

see my comment
http://permalink.gmane.org/gmane.comp.version-control.git/177857

#2 lore raw

Hi Alexey,

Quoted 8 lines · Alexey Shumkin
Quoted 6 lines · Tajti Ákos

I have a file named "árvíz.txt" in my repository. When modify that file and execute git diff, the first line looks like this:

\303\241rv\303\255z.txt +0 -0

Is there an option that (if specified) will get git to print "árvíz.txt" instead of this escaped string?

[...]

Quoted 5 lines

please, refresh your memory )))
http://comments.gmane.org/gmane.comp.version-control.git/177849

see my comment
http://permalink.gmane.org/gmane.comp.version-control.git/177857

Cc-ing Ákos so he can actually get your message this time. :) (FWIW the convention on this list is always to reply-to-all.)

Thanks,
Jonathan

#3 lore raw
Quoted 12 lines

Hi Alexey,

Quoted 8 lines · Alexey Shumkin
Quoted 6 lines · Tajti Ákos

I have a file named "árvíz.txt" in my repository. When modify that file and execute git diff, the first line looks like this:

\303\241rv\303\255z.txt +0 -0

Is there an option that (if specified) will get git to print "árvíz.txt" instead of this escaped string?

[...]

Quoted 8 lines
Quoted 5 lines

please, refresh your memory )))
http://comments.gmane.org/gmane.comp.version-control.git/177849

see my comment
http://permalink.gmane.org/gmane.comp.version-control.git/177857

Cc-ing Ákos so he can actually get your message this time. :) (FWIW the convention on this list is always to reply-to-all.)

Yes, I know, but I replied with the gmane.org site form, and it did not CC-ed

#4 lore raw

Thanks four your answer. However, it didn't help. After setting the core.quotepath option to false I get this:

<E1>rv<ED>zt<FB>r<F5> +0 -0

Is there a solution?

Thanks,
Ákos Tajti

2011.09.03. 22:09 keltezéssel, Alexey Shumkin írta:

Quoted 20 lines
Quoted 11 lines

Hi Alexey,

Quoted 7 lines · Alexey Shumkin
Quoted 6 lines · Tajti Ákos

I have a file named "árvíz.txt" in my repository. When modify that file and execute git diff, the first line looks like this:

\303\241rv\303\255z.txt +0 -0

Is there an option that (if specified) will get git to print "árvíz.txt" instead of this escaped string?

[...]

Quoted 7 lines
Quoted 5 lines

please, refresh your memory )))
http://comments.gmane.org/gmane.comp.version-control.git/177849

see my comment
http://permalink.gmane.org/gmane.comp.version-control.git/177857

Cc-ing Ákos so he can actually get your message this time. :) (FWIW the convention on this list is always to reply-to-all.)

Yes, I know, but I replied with the gmane.org site form, and it did not CC-ed

#6 lore raw
In reply to a message not in the archive

Both the terminal encoding and the filename encoding are UTF-8.

Ákos

2011.09.05. 15:02 keltezéssel, Шумкин Алексей írta:

Quoted 37 lines
Quoted 6 lines

Thanks four your answer. However, it didn't help. After setting the core.quotepath option to false I get this:

<E1>rv<ED>zt<FB>r<F5> renamed from <E1>rv<ED>zt<FB>r<F5> +0 -0

Is there a solution?

What terminal encoding do you use? and what is its encoding? It seems to me terminal encoding is UTF-8 but filename encoding is not the same.
I get the same behaviour on Linux UTF-8 terminal for the project created on Windows with filenames in cp1251-encoding.

Quoted 25 lines

Thanks,
Ákos Tajti

2011.09.03. 22:09 keltezéssel, Alexey Shumkin írta:

Quoted 21 lines
Quoted 12 lines

Hi Alexey,

Quoted 8 lines · Alexey Shumkin
Quoted 7 lines · Tajti Ákos

I have a file named "árvíz.txt" in my repository. When modify that file and execute git diff, the first line looks like this:

(quoted diff) renamed from \303\241rv\303\255z.txt +0 -0

"b/\303\241rv\303\255z.txt"

Is there an option that (if specified) will get git to print "árvíz.txt" instead of this escaped string?

[...]

Quoted 7 lines
Quoted 5 lines

please, refresh your memory )))
http://comments.gmane.org/gmane.comp.version-control.git/177849

see my comment
http://permalink.gmane.org/gmane.comp.version-control.git/177857

Cc-ing Ákos so he can actually get your message this time. :) (FWIW the convention on this list is always to reply-to-all.)

Yes, I know, but I replied with the gmane.org site form, and it did not CC-ed

#7 lore raw
In reply to Tajti Ákos

Am 9/5/2011 14:14, schrieb Tajti Ákos:

Quoted 6 lines

Thanks four your answer. However, it didn't help. After setting the core.quotepath option to false I get this:

<E1>rv<ED>zt<FB>r<F5> +0 -0

Is there a solution?

This is because the output goes through the pager (less), which treats non-ASCII characters.

Tweak your settings (LESSCHARSET) or use a different or no pager.

-- Hannes

#8 lore raw

Thank you very much, setting LESSCHARSET solved this last problem!

Ákos

2011.09.05. 15:16 keltezéssel, Johannes Sixt írta:

Quoted 13 lines

Am 9/5/2011 14:14, schrieb Tajti Ákos:

Quoted 6 lines

Thanks four your answer. However, it didn't help. After setting the core.quotepath option to false I get this:

<E1>rv<ED>zt<FB>r<F5> renamed from <E1>rv<ED>zt<FB>r<F5> +0 -0

Is there a solution?

This is because the output goes through the pager (less), which treats non-ASCII characters.

Tweak your settings (LESSCHARSET) or use a different or no pager.

-- Hannes

#9 lore raw
In reply to Tajti Ákos
Quoted 6 lines · Tajti Ákos

I have a file named "árvíz.txt" in my repository. When modify that file and execute git diff, the first line looks like this:

\303\241rv\303\255z.txt +0 -0

Is there an option that (if specified) will get git to print "árvíz.txt" instead of this escaped string?

Yes, there is, namely core.quotepath.

This probably should make it into FAQ on Git Wiki, and into git-diff manpage...

Signature · 1 line
Jakub Narębski