diff options
author | Jonas Smedegaard <dr@jones.dk> | 2016-12-21 23:59:00 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2016-12-21 23:59:00 +0100 |
commit | 111e446d1d57ccc47b35f7c6fbf8bd5575d5a0a1 (patch) | |
tree | b314e4b244ea9eefc1e3274c61d61d947744b475 /debian | |
parent | 176a1fcdf53f54c92fbc57f49f610bb7c91ec8f4 (diff) | |
download | biboumi-111e446d1d57ccc47b35f7c6fbf8bd5575d5a0a1.tar.gz biboumi-111e446d1d57ccc47b35f7c6fbf8bd5575d5a0a1.tar.bz2 biboumi-111e446d1d57ccc47b35f7c6fbf8bd5575d5a0a1.tar.xz biboumi-111e446d1d57ccc47b35f7c6fbf8bd5575d5a0a1.zip |
Add patch 2002 to fix use C.UTF-8 as hardcoded internal locale.
Diffstat (limited to 'debian')
-rw-r--r-- | debian/patches/2002_fix_default_locale.patch | 16 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/2002_fix_default_locale.patch b/debian/patches/2002_fix_default_locale.patch new file mode 100644 index 0000000..aef32d9 --- /dev/null +++ b/debian/patches/2002_fix_default_locale.patch @@ -0,0 +1,16 @@ +Description: Fix use C.UTF-8 as hardcoded internal locale + Debian always provides C.UTF-8, only often en_US.UTF-8, and not en_US.utf-8. +Author: Jonas Smedegaard <dr@jones.dk> +Last-Update: 2016-12-21 + +--- a/louloulibs/utils/time.cpp ++++ b/louloulibs/utils/time.cpp +@@ -24,7 +24,7 @@ + std::tm t = {}; + #ifdef HAS_GET_TIME + std::istringstream ss(stamp); +- ss.imbue(std::locale("en_US.utf-8")); ++ ss.imbue(std::locale("C.UTF-8")); + + std::string timezone; + ss >> std::get_time(&t, format) >> timezone; diff --git a/debian/patches/series b/debian/patches/series index 66f0cf4..ae6b213 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ 020161125~ad22be4.patch 020161204~eb8f1cb.patch 2001_cmake_ignore_git.patch +2002_fix_default_locale.patch |