Thread (5 messages) flat view 5 messages, 4 authors, 2016-06-15

Re: Rss produced by git is not valid xml?

From: Linus Torvalds <torvalds@osdl.org>
Date: 2016-06-15 22:42:13

Possibly related (same subject, not in this thread)


On Sat, 26 Nov 2005, Junio C Hamano wrote:
Kay Sievers [off-list ref] writes:
quoted
quoted
If you replace "assume" with "verify", then I agree.
One problem I have that approach is what to do if it does not
verify.  Reject and ask them to re-run the program with another
option --binary-log-message?
We could do that. With perhaps an option to just do the trivial 
"latin1->utf8" translation, which will be correct in most of the western 
world (and, perhaps more importantly - the places it won't be correct in 
will almost universally have an explicit locale setting or similar, since 
otherwise nothing would work).

In other words, in the absense of locale settings, we can pretty much 
assume any 8-bit data is latin1 if it isn't already utf-8. That's what a 
lot of tools do already (eg, gitk automatically does the right thing, 
exactly because it will assume non-proper utf-8 being in latin1).

I'd suggest that the current "-u" flag do the latin1->utf8 autoconversion, 
and _without_ the "-u" flag, you'd just commit it as binary data..

		Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help