Special characters in file name
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
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
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
-0Is 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/177849see 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
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
-0Is 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/177849see my comment
http://permalink.gmane.org/gmane.comp.version-control.git/177857Cc-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
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
-0Is 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/177849see my comment
http://permalink.gmane.org/gmane.comp.version-control.git/177857Cc-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
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
-0Is 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 Tajti2011.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/177849see my comment
http://permalink.gmane.org/gmane.comp.version-control.git/177857Cc-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
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
-0Is 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
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
-0Is 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
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
-0Is 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