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: 2009-11-15 10:19:15

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

  * status: new => closed
  * resolution: None => invalid


 Do you have a sample program exhibiting an issue ?

 The locale passed to boost::format constructor is not ignored, it is
 passed as "default" locale (i.e. last argument) to the put function by
 distribute :
 put<Ch, Tr, Alloc, T> (x, self.items_[i], self.items_[i].res_,
 self.buf_, boost::get_pointer(self.loc_) );

 The put function itself relies on format_item's apply_on function to apply
 item's format state+locale (which will be self.loc_ unless an item's own
 locale was set in some way).

 I will take a deeper look into format's locale handling - there is surely
 room for improvement here and there, and at least add a paragraph to the
 documentation with simple examples.

 But user-defined locales are not "ignored", so closing the ticket as
 "invalid" unless sample complete program is supplied.

Ticket URL: <>
Boost C++ Libraries <>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC