{"thread":{"id":"37542","subject":"Issue with 'git diff' and non ascii characters","startedAt":"2014-09-12T06:53:49Z","lastAt":"2014-09-12T19:34:52Z","messageCount":2,"participants":["Giulio Cesare Solaroli","Torsten Bögershausen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"249284","messageId":"5DEE05EE-B302-44D1-9B1D-0B475EF4E96B@solaroli.it","threadId":"37542","inReplyTo":null,"subject":"Issue with 'git diff' and non ascii characters","fromName":"Giulio Cesare Solaroli","fromEmail":"giulio.cesare@solaroli.it","sentAt":"2014-09-12T06:53:49Z","receivedAt":"2014-09-12T06:53:49Z","isPatch":false,"sender":{"key":"giulio.cesare@solaroli.it","avatar":null},"body":"Hello,\n\nI have spotted a problem using 'git diff' when non ascii characters are involved.\nNot sure if the problem is due to the name of the file, or its content.\n\nCheers,\n\nGiulio Cesare\n\nSteps to reproduce the problem:\n\n$ sw_vers\nProductName:\tMac OS X\nProductVersion:\t10.9.4\nBuildVersion:\t13E28\n$ git --version\ngit version 1.8.5.2 (Apple Git-48)\n$ mkdir test\n$ cd test\n$ echo prova > tèst.md\n$ git init\nInitialized empty Git repository in /private/tmp/test/.git/\n$ git add *\n$ git commit -m \"first commit\"\n[master (root-commit) ebbe2a3] first commit\n 1 file changed, 1 insertion(+)\n create mode 100644 \"t\\303\\250st.md\"\n$ echo provà > tèst.md \n$ git status\nOn branch master\nChanges not staged for commit:\n  (use \"git add <file>...\" to update what will be committed)\n  (use \"git checkout -- <file>...\" to discard changes in working directory)\n\n\tmodified:   \"t\\303\\250st.md\"\n\nno changes added to commit (use \"git add\" and/or \"git commit -a\")\n$ git diff tèst.md \n$ \n"},{"id":"249328","messageId":"54134ADC.6000504@web.de","threadId":"37542","inReplyTo":"5DEE05EE-B302-44D1-9B1D-0B475EF4E96B@solaroli.it","subject":"Re: Issue with 'git diff' and non ascii characters","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2014-09-12T19:34:52Z","receivedAt":"2014-09-12T19:34:52Z","isPatch":false,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"On 2014-09-12 08.53, Giulio Cesare Solaroli wrote:\n> Hello,\n> \n> I have spotted a problem using 'git diff' when non ascii characters are involved.\n> Not sure if the problem is due to the name of the file, or its content.\n> \n> Cheers,\n> \n> Giulio Cesare\n> \n> Steps to reproduce the problem:\n> \n> $ sw_vers\n> ProductName:\tMac OS X\n> ProductVersion:\t10.9.4\n> BuildVersion:\t13E28\n> $ git --version\n> git version 1.8.5.2 (Apple Git-48)\n> $ mkdir test\n> $ cd test\n> $ echo prova > tèst.md\n> $ git init\n> Initialized empty Git repository in /private/tmp/test/.git/\n> $ git add *\n> $ git commit -m \"first commit\"\n> [master (root-commit) ebbe2a3] first commit\n>  1 file changed, 1 insertion(+)\n>  create mode 100644 \"t\\303\\250st.md\"\n> $ echo provà > tèst.md \n> $ git status\n> On branch master\n> Changes not staged for commit:\n>   (use \"git add <file>...\" to update what will be committed)\n>   (use \"git checkout -- <file>...\" to discard changes in working directory)\n> \n> \tmodified:   \"t\\303\\250st.md\"\n> \n> no changes added to commit (use \"git add\" and/or \"git commit -a\")\n> $ git diff tèst.md \n> $ \nThe problem is not the contents of the file, but the file name.\n\nThe following should help:\n\ngit config core.quotepath false\n"}]}