Problem listing GIT repository with accents

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: =?iso-8859-1?Q?Elli=E9_Computing_Open_Source_Program?=
Date: Monday, February 1, 2010 - 3:48 am

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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Problem listing GIT repository with accents, =?iso-8859-1?Q?Elli= ..., (Mon Feb 1, 3:48 am)
Re: Problem listing GIT repository with accents, Jeff King, (Mon Feb 1, 4:32 am)
Re: Problem listing GIT repository with accents, Jeff King, (Mon Feb 1, 5:19 am)
Re: Problem listing GIT repository with accents, Johannes Sixt, (Mon Feb 1, 5:48 am)
Re: Problem listing GIT repository with accents, Jeff King, (Mon Feb 1, 6:39 am)
Re: Problem listing GIT repository with accents, Jeff King, (Mon Feb 1, 6:44 am)
Re: Problem listing GIT repository with accents, Junio C Hamano, (Mon Feb 1, 10:21 am)
Re: Problem listing GIT repository with accents, Jeff King, (Mon Feb 1, 10:40 am)