diff options
| author | Christoph Berg <myon@debian.org> | 2021-05-24 21:56:12 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2021-05-24 21:56:12 +0200 |
| commit | 5d6ce68ef66fcb9fa736d942b757f6b039684a8e (patch) | |
| tree | ac5434b0bb2c1610af8fd22a3d50bee3d2047cd8 /Audio/tools | |
| parent | f31b3d26dc737dcc9d2e9b8ea34690ffc669815c (diff) | |
| parent | 2f095a04ed69d9aa14b47dc4acde6b3225b2d65e (diff) | |
Update upstream source from tag 'upstream/2.4.0+repack'
Update to upstream version '2.4.0+repack'
with Debian dir 9ca745702cabe41ba6c3b1e36a86b074ebd5a230
Diffstat (limited to 'Audio/tools')
| -rw-r--r-- | Audio/tools/record_time_signal.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Audio/tools/record_time_signal.cpp b/Audio/tools/record_time_signal.cpp index a54c78c6..985fb00b 100644 --- a/Audio/tools/record_time_signal.cpp +++ b/Audio/tools/record_time_signal.cpp @@ -3,8 +3,7 @@ #include <stdexcept> #include <string> #include <memory> - -#include <locale.h> +#include <locale> #include <QCoreApplication> #include <QTextStream> @@ -239,11 +238,9 @@ int main(int argc, char *argv[]) QCoreApplication app {argc, argv}; try { - ::setlocale (LC_NUMERIC, "C"); // ensure number forms are in - // consistent format, do this - // after instantiating - // QApplication so that Qt has - // correct l18n + // ensure number forms are in consistent format, do this after + // instantiating QApplication so that Qt has correct l18n + std::locale::global (std::locale::classic ()); // Override programs executable basename as application name. app.setApplicationName ("WSJT-X Record Time Signal"); |
