read configuration files in universal newline mode
dgou at mac.com
Tue Jan 27 17:38:44 CST 2009
On or about 2009 Jan 27, at 5:21 PM, Augie Fackler indited:
> On Jan 27, 2009, at 4:15 PM, Martin Geisler wrote:
>> Matt Mackall <mpm at selenic.com> writes:
>>> Surely \r is deprecated with OS X?
>> Maybe -- don't know :-) I just know that a poor Mac user on IRC could
>> not get Mercurial to read his config file...
> OS X apps are supposed to default to LF for EOL, but some really old
> editors may default the other way. Also, some really old-hat OS 9
> users that have moved on to OS X may have bad user preferences that
> cause their editor to prefer CR instead.
Interestingly enough, the Python 2.2 docs for file() do not mention
the 'U' mode option, but version 2.3 (and even 2.6) do.
So, since it is supported by all the Python versions that Mercurial
"cares" about, what's the big deal?
It isn't going away anytime soon, even Python 3.0 keeps it for
backwards compatibility (claiming that it isn't needed).
So in Python 3.0 you're going to get that behavior anyways...
More information about the Mercurial-devel