Boost C++ Libraries: Ticket #1446: POSIX API doesn't use C locale https://svn.boost.org/trac10/ticket/1446 <p> When using POSIX interface to boost::wregex <a class="missing wiki">:alpha:</a> character class doesn't match non-ASCII alphabetical characters (eventhough C library's iswalpha() function correctly recognizes them). </p> <p> The attached program returns </p> <p> 1 0 </p> <p> 1 1 </p> <p> 0 1 </p> <p> on Debian GNU/Linux ("Testing", Boost version 1.33.1). Changing: </p> <p> setlocale(LC_ALL, "en_US.utf8"); </p> <p> to: </p> <p> std::locale en("en_US.utf8"); std::locale::global(en); </p> <p> fixes the problem. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1446 Trac 1.4.3 tomaz.solc@… Fri, 16 Nov 2007 13:00:02 GMT attachment set https://svn.boost.org/trac10/ticket/1446 https://svn.boost.org/trac10/ticket/1446 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-alpha.c</span> </li> </ul> <p> Example demonstrating POSIX API problem. </p> Ticket John Maddock Thu, 05 Jun 2008 17:07:42 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1446#comment:1 https://svn.boost.org/trac10/ticket/1446#comment:1 <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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/46170" title="Changed POSIX API functions to use the global C locale. Fixes #1446.">[46170]</a>) Changed POSIX API functions to use the global C locale. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1446" title="#1446: Bugs: POSIX API doesn't use C locale (closed: fixed)">#1446</a>. </p> Ticket