Opened 16 years ago
Last modified 5 years ago
#859 closed Bugs (fixed)
boost::format ignores a user defined locale — at Initial Version
| Reported by: | nobody | Owned by: | samuel_k |
|---|---|---|---|
| Milestone: | Component: | format | |
| Version: | Boost 1.34.0 | Severity: | Problem |
| Keywords: | Cc: | jonathan.jones@… |
Description
Altough someone can supply a user locale to boost::format, it isn't recognized.
const std::locale& userLocale = getUserLocale();
boost::format formatter (formatString, userLocale);
I could fix the problem in feed_args.hpp, function put, line 133 (boost 1.33.1):
133 basic_oaltstringstream<Ch, Tr, Alloc> oss( &buf);
+ if (loc_p)
+ {
+ oss.imbue (*loc_p);
+ }
Note:
See TracTickets
for help on using tickets.
