Index: boost/date_time/strings_from_facet.hpp =================================================================== --- boost/date_time/strings_from_facet.hpp (版本 85594) +++ boost/date_time/strings_from_facet.hpp (工作副本) @@ -55,6 +55,7 @@ for (int m=0; m < 12; m++) { tm_value.tm_mon = m; stringstream_type ss; + ss.imbue(locale); ostream_iter_type oitr(ss); std::use_facet(locale).put(oitr, ss, ss.fill(), &tm_value, @@ -109,6 +110,7 @@ for (int i=0; i < 7; i++) { tm_value.tm_wday = i; stringstream_type ss; + ss.imbue(locale); ostream_iter_type oitr(ss); std::use_facet(locale).put(oitr, ss, ss.fill(), &tm_value,