[pkg-boost-commits] r14189 - in boost/trunk/debian: . patches
smr at alioth.debian.org
smr at alioth.debian.org
Mon Mar 31 23:46:17 UTC 2008
Author: smr
Date: 2008-03-31 23:46:16 +0000 (Mon, 31 Mar 2008)
New Revision: 14189
Modified:
boost/trunk/debian/changelog
boost/trunk/debian/patches/date_time_date_formatting_hpp.patch
Log:
Fix formatting of fractional seconds in date_time/posix_time/time_formatters.
Modified: boost/trunk/debian/changelog
===================================================================
--- boost/trunk/debian/changelog 2008-03-31 23:27:01 UTC (rev 14188)
+++ boost/trunk/debian/changelog 2008-03-31 23:46:16 UTC (rev 14189)
@@ -1,11 +1,15 @@
-boost (1.34.1-10) UNRELEASED; urgency=low
+boost (1.34.1-10) unstable; urgency=low
* debian/libboost-python-dev.postinst:
* debian/libboost-python-dbg.postinst: Change from "which pyversions &&
..." (which fails if pyversions not available) to "if which pyversions
...". Closes: #473607.
+
+ * debian/patches/date_time_date_formatting_hpp: Update patch to also
+ format fractional seconds with classic locale (thanks, Jean Pierre
+ LeJacq). Also reported upstream as ticket/1726. Closes: #473177.
- -- Steve M. Robbins <smr at debian.org> Mon, 31 Mar 2008 18:26:12 -0500
+ -- Steve M. Robbins <smr at debian.org> Mon, 31 Mar 2008 18:44:59 -0500
boost (1.34.1-9) unstable; urgency=low
Modified: boost/trunk/debian/patches/date_time_date_formatting_hpp.patch
===================================================================
--- boost/trunk/debian/patches/date_time_date_formatting_hpp.patch 2008-03-31 23:27:01 UTC (rev 14188)
+++ boost/trunk/debian/patches/date_time_date_formatting_hpp.patch 2008-03-31 23:46:16 UTC (rev 14189)
@@ -14,3 +14,23 @@
if (format_type::has_date_sep_chars()) {
ss << format_type::month_sep_char();
}
+--- trunk.orig/boost/date_time/posix_time/time_formatters.hpp
++++ trunk/boost/date_time/posix_time/time_formatters.hpp
+@@ -144,6 +144,9 @@
+ date_time::absolute_value(td.fractional_seconds());
+ #endif
+ if (frac_sec != 0) {
++ // Temporarily switch to classic locale to prevent possible formatting
++ // of frac_sec with comma or other character (for example 123,456).
++ ss.imbue(std::locale::classic());
+ ss << "." << std::setw(time_duration::num_fractional_digits())
+ << std::setfill(fill_char)
+
+@@ -153,6 +156,7 @@
+ #else
+ << frac_sec;
+ #endif
++ ss.imbue(std::locale::locale());
+ }
+ }// else
+ return ss.str();
More information about the pkg-boost-commits
mailing list