* Issue with 'git diff' and non ascii characters
@ 2014-09-12 6:53 Giulio Cesare Solaroli
2014-09-12 19:34 ` Torsten Bögershausen
0 siblings, 1 reply; 2+ messages in thread
From: Giulio Cesare Solaroli @ 2014-09-12 6:53 UTC (permalink / raw)
To: git
Hello,
I have spotted a problem using 'git diff' when non ascii characters are involved.
Not sure if the problem is due to the name of the file, or its content.
Cheers,
Giulio Cesare
Steps to reproduce the problem:
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.9.4
BuildVersion: 13E28
$ git --version
git version 1.8.5.2 (Apple Git-48)
$ mkdir test
$ cd test
$ echo prova > tèst.md
$ git init
Initialized empty Git repository in /private/tmp/test/.git/
$ git add *
$ git commit -m "first commit"
[master (root-commit) ebbe2a3] first commit
1 file changed, 1 insertion(+)
create mode 100644 "t\303\250st.md"
$ echo provà > tèst.md
$ git status
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: "t\303\250st.md"
no changes added to commit (use "git add" and/or "git commit -a")
$ git diff tèst.md
$
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Issue with 'git diff' and non ascii characters
2014-09-12 6:53 Issue with 'git diff' and non ascii characters Giulio Cesare Solaroli
@ 2014-09-12 19:34 ` Torsten Bögershausen
0 siblings, 0 replies; 2+ messages in thread
From: Torsten Bögershausen @ 2014-09-12 19:34 UTC (permalink / raw)
To: Giulio Cesare Solaroli, git
On 2014-09-12 08.53, Giulio Cesare Solaroli wrote:
> Hello,
>
> I have spotted a problem using 'git diff' when non ascii characters are involved.
> Not sure if the problem is due to the name of the file, or its content.
>
> Cheers,
>
> Giulio Cesare
>
> Steps to reproduce the problem:
>
> $ sw_vers
> ProductName: Mac OS X
> ProductVersion: 10.9.4
> BuildVersion: 13E28
> $ git --version
> git version 1.8.5.2 (Apple Git-48)
> $ mkdir test
> $ cd test
> $ echo prova > tèst.md
> $ git init
> Initialized empty Git repository in /private/tmp/test/.git/
> $ git add *
> $ git commit -m "first commit"
> [master (root-commit) ebbe2a3] first commit
> 1 file changed, 1 insertion(+)
> create mode 100644 "t\303\250st.md"
> $ echo provà > tèst.md
> $ git status
> On branch master
> Changes not staged for commit:
> (use "git add <file>..." to update what will be committed)
> (use "git checkout -- <file>..." to discard changes in working directory)
>
> modified: "t\303\250st.md"
>
> no changes added to commit (use "git add" and/or "git commit -a")
> $ git diff tèst.md
> $
The problem is not the contents of the file, but the file name.
The following should help:
git config core.quotepath false
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-12 19:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-12 6:53 Issue with 'git diff' and non ascii characters Giulio Cesare Solaroli
2014-09-12 19:34 ` Torsten Bögershausen
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).