Boost logo

Boost :

Subject: Re: [boost] [git] Line endings in bootstrap.bat on Windows
From: Dave Abrahams (dave_at_[hidden])
Date: 2013-11-27 10:58:14


Beman Dawes <bdawes_at_[hidden]> writes:

> On Mon, Nov 25, 2013 at 12:40 PM, Steven Watanabe <watanabesj_at_[hidden]>wrote:
>
>> AMDG
>>
>> On 11/25/2013 09:28 AM, Beman Dawes wrote:
>> >
>> > I also had autocrlf = true on my Windows machine, so set it to false and
>> > tried a fresh clone.
>> >
>> > .\bootstrap failed! Couldn't find compiler configuration files. Oddly,
>> > bootstrap.bat still had cr/lf line endings, and was identical to the
>> > version cloned with autocrlf = true, even though many other files
>> differed
>> > in line endings.
>> >
>>
>> What about tools/build/v2/engine/build.bat
>> (Which does most of the real work)?
>>
>
> Ha! tools/build/v2/engine/build.bat just has newlines. Yet it has cr/lf
> line endings in svn.
>
> So that's why on Windows autocrlf = true is required. It also shows that
> conversion's treatment of line endings is inconsistent

That is incorrect. There is *no* CRLF handling in the conversion
process right now. It converts bytes literally.

> - apparently bootstrap.bat does not have CR stripped but tools/build
> does have them stripped.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk