[PATCH 1 of 2] encoding: add BOM (byte-order-mark) handling function (issue2162)

Martin Geisler mg at lazybytes.net
Sun Jun 20 16:19:47 CDT 2010


Matt Mackall <mpm at selenic.com> writes:

> On Sat, 2010-06-19 at 22:56 +0900, Yuya Nishihara wrote:
>> # HG changeset patch
>> # User Yuya Nishihara <yuya at tcha.org>
>> # Date 1276951076 -32400
>> # Node ID 19dc05994d6cc2727efbde32c53bcbb1dfbdc83b
>> # Parent  e5a2134c083b223bd2998b6694e430e4999caee3
>> encoding: add BOM (byte-order-mark) handling function (issue2162)
>
> Ok, these are:
>
> a) a bit late for the code freeze
> b) a little questionable (why are people saving config files in
>    UTF-8?)

Most likely because of non-ASCII characters in ui.username.

Now, as we've discussed before, UTF-8 text should not have a BOM, but as
Yuya pointed out, the infamous notepad.exe is an example of a broken
editor that inserts one anyway.

-- 
Martin Geisler

Mercurial links: http://mercurial.ch/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100620/ee7f5374/attachment.pgp>


More information about the Mercurial-devel mailing list