Re: Rss produced by git is not valid xml?
From: Marco Costalba <hidden>
Date: 2016-06-15 22:42:12
H. Peter Anvin wrote:
Junio C Hamano wrote:quoted
I just looked at the diff this commit introduces: e6bd23911efd0a2bd756c77d9e7ba6576eb739a1 Documentation: asciidoc sources are utf-8 with gitk (BTW, I pulled from paulus today, so "master" branch has the latest gitk) while my locale set to LC_CTYPE=en_US.utf8. Surprisingly, the diff to Documentation/git-pack-redundant.txt, which changes Lukas' name originally incorrectly encoded in iso-8859-1 to utf-8, was shown and both pre-image and post-image lines are readable. I do not know how tcl/tk does it, but it is doing the right thing.Tcl/Tk assumes that anything that isn't valid UTF-8 is Latin-1. -hpa -
My locale is set to LC_CTYPE=it_IT (local codec is ISO 8859-15).
Gitk shows correctly pre-image lines, but not post-image. BTW it's
the same output I have with
git-diff-tree -p e6bd23911efd0a2bd756c77d9e7ba6576eb739a1
run from KDE Konsole.
So I think the local encoding (LC_CTYPE) has a role in the story.
Marco
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com