Re: Rss produced by git is not valid xml?
- From
- Marco Costalba <mcostalba@yahoo.it>
- Date
- Nov 19, 2005, 06:31 UTC
- Message-ID
- <20051119063125.40234.qmail@web26303.mail.ukl.yahoo.com>
H. Peter Anvin wrote:
Show 23 quoted lines
> Junio C Hamano wrote: > >> 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