Re: [Boost-bugs] [Boost C++ Libraries] #859: boost::format ignores a user defined locale

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #859: boost::format ignores a user defined locale
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-08-18 14:34:35


#859: boost::format ignores a user defined locale
---------------------+------------------------------------------------------
  Reporter: nobody | Owner: samuel_krempp
      Type: Bugs | Status: new
 Milestone: | Component: format
   Version: None | Severity: Problem
Resolution: None | Keywords:
---------------------+------------------------------------------------------
Changes (by grafik):

  * component: None => format

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

> }}}

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


 }}}

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/859#comment:2>
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:49:56 UTC