summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-12-08 02:53:39 +0100
committerlouiz’ <louiz@louiz.org>2016-12-08 02:53:39 +0100
commit7a8b4e37a508e27af8da25008676e913fdf24ac6 (patch)
tree6507ddbb52d9f0f73bcb7055a7ba775116ccfff6
parent807ac95e798185aca35d6b2f3bf425a9c8b03744 (diff)
downloadbiboumi-7a8b4e37a508e27af8da25008676e913fdf24ac6.tar.gz
biboumi-7a8b4e37a508e27af8da25008676e913fdf24ac6.tar.bz2
biboumi-7a8b4e37a508e27af8da25008676e913fdf24ac6.tar.xz
biboumi-7a8b4e37a508e27af8da25008676e913fdf24ac6.zip
In time.cpp, use the en_US.UTF-8 locale, instead of en_US.utf-8
(which apparently doesn’t work on freebsd)
-rw-r--r--louloulibs/utils/time.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/louloulibs/utils/time.cpp b/louloulibs/utils/time.cpp
index afd6117..e3c49ed 100644
--- a/louloulibs/utils/time.cpp
+++ b/louloulibs/utils/time.cpp
@@ -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;