1

gitg doesn't display correctly git diff of UTF8 files, even while

  • git does it correctly (as seen on the console)
  • gitg correctly displays UTF8 files (not diff)

Is it possible to configure it to correctly display diff of UTF8 encoded files ? If so how ?

EDIT :

barti_ddu helped me realize that what seems to happen, in fact, is that gitg guess the encoding from the received diff file.

I have this problem when I replace badly encoded chars by well encoded ones : the first one in the diff is the bad one, which probably leads to a bad guess (and gives the impression I'm replacing well encoded chars by bad ones) :

enter image description here

So the (less important) goal would be to force gitg decode diff as UTF8 instead of guessing.

Denys Séguret
  • 372,613
  • 87
  • 782
  • 758
  • can't reproduce it (even if locale is forced to non-unicode one), what version of `gitg` are you using? – barti_ddu Aug 16 '12 at 16:27
  • @barti_ddu I edited : I have this problem for diffs. The version is 0.2.4. – Denys Séguret Aug 16 '12 at 18:25
  • 1
    you mean changes diff (http://postimage.org/image/hthjg7smb/)? – barti_ddu Aug 16 '12 at 18:42
  • @barti_ddu I updated my question. In fact I have no problem if there is no badly encoded chars in the diff. – Denys Séguret Aug 16 '12 at 18:56
  • it _may_ be possible to hack this by creating alias to 'diff' command which would force encoding; however this will probably require digging gitg sources to learn how does it produce diffs and may be not possible at all without patching them. – barti_ddu Aug 16 '12 at 20:19

0 Answers0