git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: ls-tree with non-english characters

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Jul 26, 2011, 10:39 UTC
Message-ID
<20110726103927.GA31625@goldbirke>
In-Reply-To
<4E2E8B33.6070900@intland.com>
Szervusz Ákos,
On Tue, Jul 26, 2011 at 11:38:59AM +0200, Tajti Ákos wrote:
Show 7 quoted lines
> 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
Previous: Tajti ÁkosNext: Tajti Ákos
Message 2 of 5 in “ls-tree with non-english characters”
  1. Tajti ÁkosJul 26, 2011
  2. SZEDER GáborJul 26, 2011
  3. Tajti ÁkosJul 26, 2011
  4. Alexey ShumkinJul 26, 2011
  5. Tajti ÁkosJul 26, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.