Opened 12 years ago

Last modified 12 years ago

#4148 new Bugs

bootstrap.bat generates project-config.jam file as Unicode (UTF-16)

Reported by: Sorin Sbarnea <sorin.sbarnea@…> Owned by: Vladimir Prus
Milestone: Boost 1.43.0 Component: build
Version: Boost 1.42.0 Severity: Problem
Keywords: Cc:

Description

On modern Windows (that is using Unicode console by default) the bootstrap.bat generates project-config.jam file as Unicode (UTF-16).

Boost is not able to read this file and is writing: project-config.jam:1: syntax error at EOF

Solution is to modify bootstrap.bat to force the generation of ASCII file instead of Unicode:

Old line: ECHO using %toolset% ; > project-config.jam

New line: cmd /a /c ECHO using %toolset% ; > project-config.jam

This small change will force the usage of ANSI output.

Reference: http://www.netikka.net/tsneti/info/tscmd028.htm#ansivsunicode cmd /a /c echo using %toolset% ; > project-config.jam

Attachments (1)

bootstrap.bat (1.9 KB ) - added by Sorin Sbarnea <sorin.sbarnea@…> 12 years ago.

Download all attachments as: .zip

Change History (3)

by Sorin Sbarnea <sorin.sbarnea@…>, 12 years ago

Attachment: bootstrap.bat added

comment:1 by Sorin Sbarnea <sorin.sbarnea@…>, 12 years ago

I attached a patched bootstrap.bat that solved the above problem. In addition this also solves the invalid bjam.log generated from the same reason (content combined UTF-16 and ANSI).

comment:2 by René Rivera, 12 years ago

Component: bjambuild
Owner: changed from René Rivera to Vladimir Prus
Note: See TracTickets for help on using tickets.