[PATCH] Don't consider UTF-16 and UTF-32 files as binary (issue1975) (version 2)

Ollivier Robert roberto at keltia.net
Mon Feb 8 09:23:35 CST 2010


According to Dirkjan Ochtman:
> I disagree. We want UTF-8 to not be treated as binary, so we want to
> check for any BOMs people might include, even if it's optional for
> UTF-8.

Even with a BOM, the test for "'\0' in s" will be False so it is redundant (but I agree it will not hurt)

-- 
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto at keltia.net
In memoriam to Ondine : http://ondine.keltia.net/



More information about the Mercurial-devel mailing list