Boost C++ Libraries: Ticket #9594: boost::locale::to_title() does not work https://svn.boost.org/trac10/ticket/9594 <p> The boost::locale::to_title() function appears to be broken. </p> <p> This code: </p> <p> int main( int argc, char* argv[] ) { </p> <blockquote> <p> namespace bl = boost::locale; </p> </blockquote> <blockquote> <p> bl::generator gen; std::locale loc( gen("en_US.UTF-8") ); std::locale::global(loc); cout.imbue(loc); </p> </blockquote> <blockquote> <p> std::string temp("ALL UPPERCASE STRING"); temp = bl::to_title(temp,loc); cout &lt;&lt; temp &lt;&lt; endl; temp = bl::to_lower(temp,loc); cout &lt;&lt; temp &lt;&lt; endl; </p> </blockquote> <blockquote> <p> return 0; </p> </blockquote> <p> } </p> <p> Outputs the following: </p> <p> ALL UPPERCASE STRING all uppercase string </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9594 Trac 1.4.3 Nathan Adams <nadams@…> Sun, 19 Jan 2014 22:55:06 GMT <link>https://svn.boost.org/trac10/ticket/9594#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9594#comment:1</guid> <description> <p> $ uname -a Linux nereidum 3.11.0-15-generic <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/23" title="#23: Bugs: Trivial doc error (closed: Fixed)">#23</a>-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Artyom Beilis</dc:creator> <pubDate>Mon, 20 Jan 2014 08:37:37 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9594#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9594#comment:2</guid> <description> <p> Have you compiled the Boost.Locale with ICU support? </p> <p> Only ICU backed provide proper Title Case handing </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Artyom Beilis</dc:creator> <pubDate>Thu, 13 Jul 2017 14:52:03 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9594#comment:3 https://svn.boost.org/trac10/ticket/9594#comment:3 <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">invalid</span> </li> </ul> Ticket