From b8c13200bde6aaa2c3e27f833fa7bde69f0865e2 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Tue, 9 Feb 2021 12:29:24 +0100 Subject: Patch logging to require C.UTF-8 instead of en_US.UTF-8. (Closes: #982287) --- debian/changelog | 6 ++++++ debian/patches/c-locale | 13 +++++++++++++ debian/patches/series | 1 + 3 files changed, 20 insertions(+) create mode 100644 debian/patches/c-locale diff --git a/debian/changelog b/debian/changelog index 604a4e72..6e8e9d9f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +wsjtx (2.4.0~rc1+repack-2) UNRELEASED; urgency=medium + + * Patch logging to require C.UTF-8 instead of en_US.UTF-8. (Closes: #982287) + + -- Christoph Berg Tue, 09 Feb 2021 16:17:41 +0100 + wsjtx (2.4.0~rc1+repack-1) experimental; urgency=medium * New upstream version 2.4.0~rc1+repack with new Q65 mode. diff --git a/debian/patches/c-locale b/debian/patches/c-locale new file mode 100644 index 00000000..0f20b87c --- /dev/null +++ b/debian/patches/c-locale @@ -0,0 +1,13 @@ +Fix "Error: locale::facet::_S_create_c_locale name not valid" with en_US.UTF-8 missing + +--- a/main.cpp ++++ b/main.cpp +@@ -134,7 +134,7 @@ int main(int argc, char *argv[]) + #if defined (Q_OS_WIN) + std::locale::global (std::locale ("C")); + #else +- std::locale::global (std::locale ("en_US.UTF-8")); ++ std::locale::global (std::locale ("C.UTF-8")); + #endif + + // Override programs executable basename as application name. diff --git a/debian/patches/series b/debian/patches/series index 17248ea7..4280e2fd 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -5,3 +5,4 @@ 0013-qcustomplot-link.patch 0014-xsltproc-nonet-manpages.patch 0015-typos.patch +c-locale -- cgit v1.2.3