Skip to contentSkip to conversation

ls-tree with non-english characters

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

lore
Share & tools
lore
#0 lore raw

Dear List,

I tried to use git ls-tree but on blob names containing non-english characters I get a strange output. For example:

ákosű -> \303\241kos\305\261

There's no mention of this format in the manual of ls-tree. Could you please help me on resolving this cryptic string to the original form?

Thanks in advance,
Ákos Tajti

#1 lore raw

Szervusz Ákos,

Quoted 7 lines · Tajti Ákos

I tried to use git ls-tree but on blob names containing non-english characters I get a strange output. For example:

ákosű -> \303\241kos\305\261

There's no mention of this format in the manual of ls-tree. Could you please help me on resolving this cryptic string to the original form?

Try with the -z option, it seems to do more than the documentation suggests:

  $ git ls-tree HEAD
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391	"\303\241rv\303\255zt\305\261r\305\221"
  $ git ls-tree -z HEAD
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391	árvíztűrő

Gábor

#2 lore raw

Thanks, Gábor, you helped a lot!

Regards,
Ákos

2011.07.26. 12:39 keltezéssel, SZEDER Gábor írta:

Quoted 22 lines

Szervusz Ákos,

Quoted 7 lines · Tajti Ákos

I tried to use git ls-tree but on blob names containing non-english characters I get a strange output. For example:

ákosű -> \303\241kos\305\261

There's no mention of this format in the manual of ls-tree. Could you please help me on resolving this cryptic string to the original form?

Try with the -z option, it seems to do more than the documentation suggests:

   $ git ls-tree HEAD
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391	"\303\241rv\303\255zt\305\261r\305\221"
   $ git ls-tree -z HEAD
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391	árvíztűrő

Gábor

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

Dear Alaxey,

thanks, I didn't know about this configuration option.

Regards,
Ákos Tajti

2011.07.26. 13:17 keltezéssel, Alexey Shumkin írta:

Quoted 21 lines

В Tue, 26 Jul 2011 11:38:59 +0200
Tajti Ákos<[email protected]> пишет:

Quoted 5 lines

Dear List,

I tried to use git ls-tree but on blob names containing non-english characters I get a strange output. For example:

Quoted 7 lines

ákosű -> \303\241kos\305\261

There's no mention of this format in the manual of ls-tree. Could you please help me on resolving this cryptic string to the original form?

Thanks in advance,
Ákos Tajti

Russian Windows git users know this feature

git config [--global] core.quotepath false
resolves it

and, yes, man git-config

#5 lore raw
In reply to Tajti Ákos
Quoted 6 lines · Tajti Ákos <akos.tajti <at> intland.com> writes:

Dear List,

I tried to use git ls-tree but on blob names containing non-english characters I get a strange output. For example:

Quoted 8 lines

ákosű -> \303\241kos\305\261

There's no mention of this format in the manual of ls-tree. Could you please help me on resolving this cryptic string to the original form?

Thanks in advance,
Ákos Tajti

Russian Windows git users know this feature

git config [--global] core.quotepath false
resolves it (without -z)

and, yes, man git-config