From: Linus Torvalds Date: Sun, 27 Nov 2005 04:13:54 GMT Subject: Re: Rss produced by git is not valid xml? Message-ID: In-Reply-To: <7vfypioi83.fsf@assigned-by-dhcp.cox.net> On Sat, 26 Nov 2005, Junio C Hamano wrote: > Kay Sievers writes: > >> > >> 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