[Boost-bugs] [Boost C++ Libraries] #4148: bootstrap.bat generates project-config.jam file as Unicode (UTF-16)

Subject: [Boost-bugs] [Boost C++ Libraries] #4148: bootstrap.bat generates project-config.jam file as Unicode (UTF-16)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-04-24 20:07:51


#4148: bootstrap.bat generates project-config.jam file as Unicode (UTF-16)
-----------------------------------------------------+----------------------
 Reporter: Sorin Sbarnea <sorin.sbarnea@…> | Owner: grafik
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: bjam
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: |
-----------------------------------------------------+----------------------
 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

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4148>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC