summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2021-05-24 21:55:29 +0200
committerChristoph Berg <myon@debian.org>2021-05-24 21:55:29 +0200
commit2f095a04ed69d9aa14b47dc4acde6b3225b2d65e (patch)
treefe929dd7dbe483f5f439c7a7935125e871550296 /main.cpp
parent5c88480ddc5c5dab1f3444a8b8de9303fd6140da (diff)
New upstream version 2.4.0+repackupstream/2.4.0+repack
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/main.cpp b/main.cpp
index 2db250b3..e4d14b67 100644
--- a/main.cpp
+++ b/main.cpp
@@ -130,12 +130,8 @@ int main(int argc, char *argv[])
QLocale locale; // get the current system locale
- // Set C/C++ locale used for logging etc.
-#if defined (Q_OS_WIN)
- std::locale::global (std::locale ("C"));
-#else
- std::locale::global (std::locale ("en_US.UTF-8"));
-#endif
+ // reset the C+ & C global locales to the classic C locale
+ std::locale::global (std::locale::classic ());
// Override programs executable basename as application name.
a.setApplicationName ("WSJT-X");