From 2f095a04ed69d9aa14b47dc4acde6b3225b2d65e Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Mon, 24 May 2021 21:55:29 +0200 Subject: New upstream version 2.4.0+repack --- UDPExamples/MessageAggregator.cpp | 9 ++++----- UDPExamples/UDPDaemon.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 9 deletions(-) (limited to 'UDPExamples') diff --git a/UDPExamples/MessageAggregator.cpp b/UDPExamples/MessageAggregator.cpp index 52124045..f44c036b 100644 --- a/UDPExamples/MessageAggregator.cpp +++ b/UDPExamples/MessageAggregator.cpp @@ -31,7 +31,7 @@ // menu that allows each dock window to be hidden or revealed. // -#include +#include #include #include @@ -52,10 +52,9 @@ int main (int argc, char * argv[]) QApplication app {argc, argv}; try { - setlocale (LC_NUMERIC, "C"); // ensure number forms are in - // consistent format, do this after - // instantiating QApplication so - // that GUI has correct l18n + // ensure number forms are in consistent format, do this after + // instantiating QApplication so that GUI has correct l18n + std::locale::global (std::locale::classic ()); app.setApplicationName ("WSJT-X Reference UDP Message Aggregator Server"); app.setApplicationVersion ("1.0"); diff --git a/UDPExamples/UDPDaemon.cpp b/UDPExamples/UDPDaemon.cpp index 1d3a7abe..4dc04af8 100644 --- a/UDPExamples/UDPDaemon.cpp +++ b/UDPExamples/UDPDaemon.cpp @@ -17,6 +17,7 @@ #include #include +#include #include #include @@ -263,10 +264,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 GUI has correct l18n + // ensure number forms are in consistent format, do this after + // instantiating QApplication so that GUI has correct l18n + std::locale::global (std::locale::classic ()); app.setApplicationName ("WSJT-X UDP Message Server Daemon"); app.setApplicationVersion ("1.0"); -- cgit v1.2.3