git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem listing GIT repository with accents
@ 2010-02-01 10:48 Ellié Computing Open Source Program
  2010-02-01 11:32 ` Jeff King
  0 siblings, 1 reply; 8+ messages in thread
From: Ellié Computing Open Source Program @ 2010-02-01 10:48 UTC (permalink / raw)
  To: git

Dear all,

I'm writing a tool (ECMerge) which use the git command line to list folders 
content (as of specific commits, tags and so on). This way our users can 
browse a GIT repository in our GUI.

We are in front of the following problem: when a GIT repository contains a 
folder with accents, the files names for its content are often prepended 
with random characters. Here is a transcript of a list of operation 
exhibiting the problem:

 C:\temp\scc-tests\git>git ls-tree HEAD .
100644 blob 443d8625f771c421efd86c129483f9a139a4e85f    "p\351p\351.txt"
C:\temp\scc-tests\git>mkdir "caractère spécial"
C:\temp\scc-tests\git>echo plouf > "caractère spécial\plouf.txt"
C:\temp\scc-tests\git>git add "caractère spécial"
C:\temp\scc-tests\git>git commit -m plouf
[master b94d9cb] plouf
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 "caract\350re sp\351cial/plouf.txt"

C:\temp\scc-tests\git>git ls-tree HEAD .
040000 tree d2b614bbfb4c5f39a32eb1309654262df113f605    "caract\350re 
sp\351cial"
100644 blob 443d8625f771c421efd86c129483f9a139a4e85f    "p\351p\351.txt"

C:\temp\scc-tests\git>git ls-tree -r HEAD .
100644 blob bf10a8b39e72c754ee1872fcdb13662cba6a8880    "caract\350re 
sp\351cial/\272plouf.txt"
100644 blob 443d8625f771c421efd86c129483f9a139a4e85f    "p\351p\351.txt"

C:\temp\scc-tests\git>git ls-tree -r HEAD "caractère spécial"
100644 blob bf10a8b39e72c754ee1872fcdb13662cba6a8880    "caract\350re 
sp\351cial/\272plouf.txt"

Note the spurious \272 which comes in the listing :(
Trying again the same commands may give other spurious characters (each time 
we tried we get different _bad_ responses)


Hope you can do somehing for that,
Best regards
Armel Asselin - from Ellié Computing

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

end of thread, other threads:[~2010-02-01 17:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-01 10:48 Problem listing GIT repository with accents Ellié Computing Open Source Program
2010-02-01 11:32 ` Jeff King
2010-02-01 12:19   ` Jeff King
2010-02-01 12:48     ` Johannes Sixt
2010-02-01 13:39       ` Jeff King
2010-02-01 13:44         ` Jeff King
2010-02-01 17:21           ` Junio C Hamano
2010-02-01 17:40             ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).