Opened 16 years ago

Last modified 5 years ago

#859 closed Bugs (fixed)

boost::format ignores a user defined locale — at Version 2

Reported by: nobody Owned by: Samuel Krempp
Milestone: Component: format
Version: Boost 1.34.0 Severity: Problem
Keywords: Cc: jonathan.jones@…

Description (last modified by René Rivera)

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);
+    }
        

Change History (2)

comment:1 by Samuel Krempp, 15 years ago

Owner: changed from samuel_k to Samuel Krempp
Severity: Problem
Status: assignednew

comment:2 by René Rivera, 15 years ago

Component: Noneformat
Description: modified (diff)
Note: See TracTickets for help on using tickets.