Ticket #1726: boost-date-time-1726.patch
File boost-date-time-1726.patch, 824 bytes (added by , 12 years ago) |
---|
-
boost/date_time/posix_time/time_formatters.hpp
144 144 date_time::absolute_value(td.fractional_seconds()); 145 145 #endif 146 146 if (frac_sec != 0) { 147 // Temporarily switch to classic locale to prevent possible formatting 148 // of frac_sec with comma or other character (for example 123,456). 149 ss.imbue(std::locale::classic()); 147 150 ss << "." << std::setw(time_duration::num_fractional_digits()) 148 151 << std::setfill(fill_char) 149 152 … … 153 156 #else 154 157 << frac_sec; 155 158 #endif 159 ss.imbue(std::locale()); 156 160 } 157 161 }// else 158 162 return ss.str();