[darcs-users] [patch167] Reintroduce UTF-8 tagging (and 3 more)

Reinier Lamers tux_rocker at reinier.de
Sat Mar 27 11:57:24 UTC 2010


Hi all,

Op vrijdag 26 maart 2010 15:38 schreef Eric Kow:
> Do we all agree on the following two points?
> 
> - We cannot guarantee correctness in case of untagged patches.
> - But we can guarantee it on tagged patches.

No, I don't, actually. You can agree on the correctness for a meaningful 
subset of untagged patches - namely those created by a UTF-8-aware darcs. 
That's the most important. For the rest we'll have to guess anyway. 

The standard behavior, afaik, with data of which you don't know the encoding, 
is to treat it as encoded in the current locale. Tagging newer patches is the 
price we pay for that. Apparently, many people don't want to pay that price. 
And even without tagging, things will only go wrong in rare corner cases where 
something is valid UTF-8 and valid in the locale at the same time, and the 
locale is not UTF-8, and the locale and UTF_8 actually differ in their 
interpretation of the metadata.

I'm not feeling very strongly either way, I just want to get the UTF-8 stuff 
sorted out for 2.5. If nobody objects to removing tagging and detecting UTF-8, 
I'll submit a patch to do that.

Reinier


More information about the darcs-users mailing list