Boost C++ Libraries: Ticket #11651: boost::to_upper and boost::to_lower damages non ascii-charasters in std::u32string https://svn.boost.org/trac10/ticket/11651 <p> code to reproduce: </p> <p> std::u32string u32str = U"Проверка <a class="missing wiki">АаАа</a> abcd"; boost::to_upper(u32str); <em> u32str contains "@&gt;25@:0 00 ABCD" after </em></p> <p> proper upper string is "ПРОВЕРКА АААА ABCD" </p> <p> Visual Studio 2015 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11651 Trac 1.4.3 Marshall Clow Mon, 14 Sep 2015 20:02:30 GMT <link>https://svn.boost.org/trac10/ticket/11651#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11651#comment:1</guid> <description> <p> Let's be charitable here and say just that boost::to_upper and boost::to_lower are not "unicode aware". </p> <p> What is the locale when you run this code? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 15 Sep 2015 03:22:05 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11651#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11651#comment:2</guid> <description> <p> I have Windows 8.1 ENG and run with default locale. If to change from std::u32string to std::wstring the problem disappers </p> </description> <category>Ticket</category> </item> </channel> </rss>