[issue3018] Parse error on config file with UTF-8 BOM
Peter Linss
bugs at mercurial.selenic.com
Thu Sep 22 21:17:28 CDT 2011
New submission from Peter Linss <peter.linss at hp.com>:
When the config file begins with a UTF-8 Byte Order Mark, most commands fail
with the following error:
hg: parse error at /Users/foo/.hgrc:1: [ui]
Removing the BOM resolves the problem.
As many editors insert BOMs this error can lead to serious confusion, the
BOM should be accepted (and used to determine the file's encoding).
----------
messages: 17506
nosy: plinss
priority: bug
status: unread
title: Parse error on config file with UTF-8 BOM
topic: 1.9
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3018>
____________________________________________________
More information about the Mercurial-devel
mailing list