[Boost-bugs] [Boost C++ Libraries] #9594: boost::locale::to_title() does not work

Subject: [Boost-bugs] [Boost C++ Libraries] #9594: boost::locale::to_title() does not work
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-01-19 22:54:12


#9594: boost::locale::to_title() does not work
-------------------------------------+---------------------
 Reporter: Nathan Adams <nadams@…> | Owner: artyom
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: locale
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
-------------------------------------+---------------------
 The boost::locale::to_title() function appears to be broken.

 This code:

 int main( int argc, char* argv[] )
 {
     namespace bl = boost::locale;

     bl::generator gen;
     std::locale loc( gen("en_US.UTF-8") );
     std::locale::global(loc);
     cout.imbue(loc);

     std::string temp("ALL UPPERCASE STRING");
     temp = bl::to_title(temp,loc);
     cout << temp << endl;
     temp = bl::to_lower(temp,loc);
     cout << temp << endl;

     return 0;
 }

 Outputs the following:

 ALL UPPERCASE STRING
 all uppercase string

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