~singpolyma/biboumi

7a8b4e37a508e27af8da25008676e913fdf24ac6 — louiz’ 7 years ago 807ac95
In time.cpp, use the en_US.UTF-8 locale, instead of en_US.utf-8

(which apparently doesn’t work on freebsd)
1 files changed, 1 insertions(+), 1 deletions(-)

M louloulibs/utils/time.cpp
M louloulibs/utils/time.cpp => louloulibs/utils/time.cpp +1 -1
@@ 24,7 24,7 @@ std::time_t parse_datetime(const std::string& stamp)
  std::tm t = {};
#ifdef HAS_GET_TIME
  std::istringstream ss(stamp);
  ss.imbue(std::locale("en_US.utf-8"));
  ss.imbue(std::locale("en_US.UTF-8"));

  std::string timezone;
  ss >> std::get_time(&t, format) >> timezone;