Ticket #1726: boost-date-time-1726.patch

File boost-date-time-1726.patch, 824 bytes (added by Dean Michael Berris, 12 years ago)

Updated patch to apply cleanly to r68583 on trunk.

  • boost/date_time/posix_time/time_formatters.hpp

     
    144144        date_time::absolute_value(td.fractional_seconds());
    145145#endif
    146146      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());
    147150        ss  << "." << std::setw(time_duration::num_fractional_digits())
    148151            << std::setfill(fill_char)
    149152
     
    153156#else
    154157        << frac_sec;
    155158#endif
     159        ss.imbue(std::locale());
    156160      }
    157161    }// else
    158162    return ss.str();