[pkg-boost-commits] r14178 - in boost/trunk/debian: . patches

smr at alioth.debian.org smr at alioth.debian.org
Sun Mar 23 05:56:25 UTC 2008


Author: smr
Date: 2008-03-23 05:56:25 +0000 (Sun, 23 Mar 2008)
New Revision: 14178

Added:
   boost/trunk/debian/patches/date_time_date_formatting_hpp.patch
Modified:
   boost/trunk/debian/changelog
   boost/trunk/debian/patches/series
Log:
Fix formatting of year in date_time/date_formatting.hpp.

Modified: boost/trunk/debian/changelog
===================================================================
--- boost/trunk/debian/changelog	2008-03-23 05:43:12 UTC (rev 14177)
+++ boost/trunk/debian/changelog	2008-03-23 05:56:25 UTC (rev 14178)
@@ -29,8 +29,13 @@
   * boost/spirit/phoenix/operators.hpp: Include <climits>, to build with
     GCC 4.3; patch added to gcc-4.3.patch (thanks, Dominic Hargreaves).
     Closes: #470080.
+  
+  * boost/date_time/date_formatting.hpp: Format year with classic locale
+    to force correct formatting; new patch date_time_date_formatting_hpp
+    (thanks, Jean Pierre LeJacq).  Also reported upstream as ticket/1674.
+    Closes: #469771.
 
- -- Steve M. Robbins <smr at debian.org>  Sun, 23 Mar 2008 00:32:07 -0500
+ -- Steve M. Robbins <smr at debian.org>  Sun, 23 Mar 2008 00:51:35 -0500
 
 boost (1.34.1-8) unstable; urgency=low
 

Added: boost/trunk/debian/patches/date_time_date_formatting_hpp.patch
===================================================================
--- boost/trunk/debian/patches/date_time_date_formatting_hpp.patch	                        (rev 0)
+++ boost/trunk/debian/patches/date_time_date_formatting_hpp.patch	2008-03-23 05:56:25 UTC (rev 14178)
@@ -0,0 +1,16 @@
+--- trunk.orig/boost/date_time/date_formatting.hpp
++++ trunk/boost/date_time/date_formatting.hpp
+@@ -79,7 +79,13 @@
+     {
+       typedef typename ymd_type::month_type month_type;
+       std::basic_ostringstream<charT> ss;
++
++      // Temporarily switch to classic locale to prevent possible formatting
++      // of year with comma or other character (for example 2,008).
++      ss.imbue(std::locale::classic());
+       ss << ymd.year;
++      ss.imbue(std::locale::locale());
++
+       if (format_type::has_date_sep_chars()) {
+         ss << format_type::month_sep_char();
+       }

Modified: boost/trunk/debian/patches/series
===================================================================
--- boost/trunk/debian/patches/series	2008-03-23 05:43:12 UTC (rev 14177)
+++ boost/trunk/debian/patches/series	2008-03-23 05:56:25 UTC (rev 14178)
@@ -3,3 +3,4 @@
 function-template-thread-safety.patch
 regex-vulnerability.patch
 bjam-no-strict-aliasing.patch
+date_time_date_formatting_hpp.patch




More information about the pkg-boost-commits mailing list