All of lore.kernel.org
 help / color / mirror / Atom feed
* Special characters in file name
@ 2011-09-02 12:06 Tajti Ákos
  2011-09-02 12:38 ` Alexey Shumkin
  2011-09-03 19:57 ` Jakub Narebski
  0 siblings, 2 replies; 9+ messages in thread
From: Tajti Ákos @ 2011-09-02 12:06 UTC (permalink / raw)
  To: git

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:
diff --git "a/\303\241rv\303\255z.txt" "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?

Thanks in advance,
Ákos Tajti

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

* Re: Special characters in file name
  2011-09-02 12:06 Special characters in file name Tajti Ákos
@ 2011-09-02 12:38 ` Alexey Shumkin
  2011-09-03 14:46   ` Jonathan Nieder
  2011-09-03 19:57 ` Jakub Narebski
  1 sibling, 1 reply; 9+ messages in thread
From: Alexey Shumkin @ 2011-09-02 12:38 UTC (permalink / raw)
  To: git

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:
> diff --git "a/\303\241rv\303\255z.txt" "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?
> 
> 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

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

* Re: Special characters in file name
  2011-09-02 12:38 ` Alexey Shumkin
@ 2011-09-03 14:46   ` Jonathan Nieder
  2011-09-03 20:09     ` Alexey Shumkin
  0 siblings, 1 reply; 9+ messages in thread
From: Jonathan Nieder @ 2011-09-03 14:46 UTC (permalink / raw)
  To: Alexey Shumkin; +Cc: git, Tajti Ákos

Hi Alexey,

Alexey Shumkin wrote:
> Tajti Ákos writes:

>> 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:
>> diff --git "a/\303\241rv\303\255z.txt" "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?
[...]
> 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

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

* Re: Special characters in file name
  2011-09-02 12:06 Special characters in file name Tajti Ákos
  2011-09-02 12:38 ` Alexey Shumkin
@ 2011-09-03 19:57 ` Jakub Narebski
  1 sibling, 0 replies; 9+ messages in thread
From: Jakub Narebski @ 2011-09-03 19:57 UTC (permalink / raw)
  To: Tajti Ákos; +Cc: git

Tajti Ákos <akos.tajti@intland.com> writes:

> 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:
> diff --git "a/\303\241rv\303\255z.txt" "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?

Yes, there is, namely `core.quotepath`.

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

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

* Re: Special characters in file name
  2011-09-03 14:46   ` Jonathan Nieder
@ 2011-09-03 20:09     ` Alexey Shumkin
  2011-09-05 12:14       ` Tajti Ákos
  0 siblings, 1 reply; 9+ messages in thread
From: Alexey Shumkin @ 2011-09-03 20:09 UTC (permalink / raw)
  To: Jonathan Nieder; +Cc: git, Tajti Ákos

> Hi Alexey,
> 
> Alexey Shumkin wrote:
> > Tajti Ákos writes:
> 
> >> 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:
> >> diff --git "a/\303\241rv\303\255z.txt" "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?
> [...]
> > 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

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

* Re: Special characters in file name
  2011-09-03 20:09     ` Alexey Shumkin
@ 2011-09-05 12:14       ` Tajti Ákos
       [not found]         ` <20110905170237.3ed59c6a@ashu.dyn.rarus.ru>
  2011-09-05 13:16         ` Johannes Sixt
  0 siblings, 2 replies; 9+ messages in thread
From: Tajti Ákos @ 2011-09-05 12:14 UTC (permalink / raw)
  To: Alexey Shumkin; +Cc: Jonathan Nieder, git

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

diff --git a/<E1>rv<ED>zt<FB>r<F5> b/<E1>rv<ED>zt<FB>r<F5>

Is there a solution?

Thanks,
Ákos Tajti

2011.09.03. 22:09 keltezéssel, Alexey Shumkin írta:
>> Hi Alexey,
>>
>> Alexey Shumkin wrote:
>>> Tajti Ákos writes:
>>>> 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:
>>>> diff --git "a/\303\241rv\303\255z.txt" "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?
>> [...]
>>> 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

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

* Re: Special characters in file name
       [not found]         ` <20110905170237.3ed59c6a@ashu.dyn.rarus.ru>
@ 2011-09-05 13:12           ` Tajti Ákos
  0 siblings, 0 replies; 9+ messages in thread
From: Tajti Ákos @ 2011-09-05 13:12 UTC (permalink / raw)
  To: Шумкин
	Алексей
  Cc: git

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

Ákos

2011.09.05. 15:02 keltezéssel, Шумкин Алексей írta:
>> Thanks four your answer. However, it didn't help. After setting the
>> core.quotepath option to false I get this:
>>
>> diff --git a/<E1>rv<ED>zt<FB>r<F5>  b/<E1>rv<ED>zt<FB>r<F5>
>>
>> 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.
>
>> Thanks,
>> Ákos Tajti
>>
>> 2011.09.03. 22:09 keltezéssel, Alexey Shumkin írta:
>>>> Hi Alexey,
>>>>
>>>> Alexey Shumkin wrote:
>>>>> Tajti Ákos writes:
>>>>>> 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:
>>>>>> diff --git "a/\303\241rv\303\255z.txt"
>>>>>> "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?
>>>> [...]
>>>>> 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

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

* Re: Special characters in file name
  2011-09-05 12:14       ` Tajti Ákos
       [not found]         ` <20110905170237.3ed59c6a@ashu.dyn.rarus.ru>
@ 2011-09-05 13:16         ` Johannes Sixt
  2011-09-05 13:33           ` Tajti Ákos
  1 sibling, 1 reply; 9+ messages in thread
From: Johannes Sixt @ 2011-09-05 13:16 UTC (permalink / raw)
  To: Tajti Ákos; +Cc: Alexey Shumkin, Jonathan Nieder, git

Am 9/5/2011 14:14, schrieb Tajti Ákos:
> Thanks four your answer. However, it didn't help. After setting the
> core.quotepath option to false I get this:
> 
> diff --git a/<E1>rv<ED>zt<FB>r<F5> b/<E1>rv<ED>zt<FB>r<F5>
> 
> 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

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

* Re: Special characters in file name
  2011-09-05 13:16         ` Johannes Sixt
@ 2011-09-05 13:33           ` Tajti Ákos
  0 siblings, 0 replies; 9+ messages in thread
From: Tajti Ákos @ 2011-09-05 13:33 UTC (permalink / raw)
  To: Johannes Sixt; +Cc: Alexey Shumkin, Jonathan Nieder, git

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

Ákos

2011.09.05. 15:16 keltezéssel, Johannes Sixt írta:
> Am 9/5/2011 14:14, schrieb Tajti Ákos:
>> Thanks four your answer. However, it didn't help. After setting the
>> core.quotepath option to false I get this:
>>
>> diff --git a/<E1>rv<ED>zt<FB>r<F5>  b/<E1>rv<ED>zt<FB>r<F5>
>>
>> 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

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

end of thread, other threads:[~2011-09-05 13:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-02 12:06 Special characters in file name Tajti Ákos
2011-09-02 12:38 ` Alexey Shumkin
2011-09-03 14:46   ` Jonathan Nieder
2011-09-03 20:09     ` Alexey Shumkin
2011-09-05 12:14       ` Tajti Ákos
     [not found]         ` <20110905170237.3ed59c6a@ashu.dyn.rarus.ru>
2011-09-05 13:12           ` Tajti Ákos
2011-09-05 13:16         ` Johannes Sixt
2011-09-05 13:33           ` Tajti Ákos
2011-09-03 19:57 ` Jakub Narebski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.