Opened 9 years ago

Closed 5 years ago

#9594 closed Bugs (invalid)

boost::locale::to_title() does not work

Reported by: Nathan Adams <nadams@…> Owned by: Artyom Beilis
Milestone: To Be Determined Component: locale
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

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

Change History (3)

comment:1 by Nathan Adams <nadams@…>, 9 years ago

$ uname -a Linux nereidum 3.11.0-15-generic #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

comment:2 by Artyom Beilis, 9 years ago

Have you compiled the Boost.Locale with ICU support?

Only ICU backed provide proper Title Case handing

comment:3 by Artyom Beilis, 5 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.