Boost C++ Libraries: Ticket #5009: read_info doesn't handle wistream correctly (isspace asserts) https://svn.boost.org/trac10/ticket/5009 <p> The following code works on GNU/Linux (g++ 4.2.4) but fails on Windows (XP/vc8) because the library function <em>isspace</em> called by the info-parser seems to include an additional check (i &lt;= 255). </p> <pre class="wiki"> using namespace boost::property_tree ; wptree pt ; std::wfstream fs( "any_utf8_encoded_file.info" ) ; fs.imbue( std::locale( std::locale(), new boost::utf8_codecvt_facet ) ); read_info( fs, pt ) ; </pre><p> I replaced the call to the single-argument-version of <em>isspace</em> with the locale-aware version which results in a running solution but in consequence nearly every method in info_parser_read.hpp got as an additional parameter a reference to the stream. Maybe there is a more elegant solution. </p> <p> See also comments in <em>boost/tuple/tuple_io.hpp</em>. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5009 Trac 1.4.3 Marshall Clow Tue, 18 Jan 2011 15:44:00 GMT <link>https://svn.boost.org/trac10/ticket/5009#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5009#comment:1</guid> <description> <p> Can you tell me why you think this is a regression? </p> <p> To me, that means "it used to work, and now it is broken", and that doesn't seem to fit the description here. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 21 Feb 2011 09:18:12 GMT</pubDate> <title>severity changed https://svn.boost.org/trac10/ticket/5009#comment:2 https://svn.boost.org/trac10/ticket/5009#comment:2 <ul> <li><strong>severity</strong> <span class="trac-field-old">Regression</span> → <span class="trac-field-new">Problem</span> </li> </ul> Ticket v.pruess Mon, 21 Feb 2011 09:20:22 GMT <link>https://svn.boost.org/trac10/ticket/5009#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5009#comment:3</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/5009#comment:1" title="Comment 1">marshall</a>: </p> <blockquote class="citation"> <p> Can you tell me why you think this is a regression? </p> <p> To me, that means "it used to work, and now it is broken", and that doesn't seem to fit the description here. </p> </blockquote> <p> Sorry, this was clearly misleading. I changed the <em>Severity</em> to <em>Problem</em> because I never observed this feature as working. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Sebastian Redl</dc:creator> <pubDate>Mon, 16 May 2011 21:42:01 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5009#comment:4 https://svn.boost.org/trac10/ticket/5009#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in <a class="changeset" href="https://svn.boost.org/trac10/changeset/71994" title="Merge r70664-70666 to release. Improves INI parser and brings ...">r71994</a> to not crash. That doesn't mean it really recognizes Unicode whitespace. </p> Ticket