[Boost-bugs] [Boost C++ Libraries] #3525: problem with example response_file.cpp

Subject: [Boost-bugs] [Boost C++ Libraries] #3525: problem with example response_file.cpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-15 09:57:26


#3525: problem with example response_file.cpp
--------------------------------+-------------------------------------------
 Reporter: gvacanti@… | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: program_options
  Version: Boost 1.40.0 | Severity: Cosmetic
 Keywords: |
--------------------------------+-------------------------------------------
 The example works as advertised when the provided response file is used.
 If I modify the response file as follows:

 -I bar1234567890123456789012345678901234567890
 -I biz
 --magic=10

 then the output is garbled:

 Include paths: bar12�\pA5678A,,bar12

 I can fix the problem if I add

  string sss= ss.str();

 and replace the tokenizer line with

  tokenizer<char_separator<char> > tok(sss, sep);

 I'm not too sure why the problem occurs, as ss.str() is supposed to return
 a copy.

 I work on Linux, gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3525>
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:01 UTC