changeset 16348 | f350021ee32e |
parent 15919 | 69e792cf7851 |
child 16865 | a6543fdcf869 |
--- a/mercurial/config.py Mon Apr 02 17:02:50 2012 -0500 +++ b/mercurial/config.py Tue Apr 03 11:35:04 2012 -0500 @@ -115,6 +115,9 @@ for l in data.splitlines(True): line += 1 + if line == 1 and l.startswith('\xef\xbb\xbf'): + # Someone set us up the BOM + l = l[3:] if cont: if commentre.match(l): continue