From cab2b120c849c8ec5fd0fdc057dba3525ab00231 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 27 Aug 2023 21:47:54 +0200 Subject: [PATCH] Main: The fix for https://forum.freecad.org/viewtopic.php?t=79192 may have caused a regression with Py3.10 on Windows as reported here https://forum.freecad.org/viewtopic.php?t=80659 This PR activates the previous fix for Linux & UNIX systems only --- src/Main/MainGui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Main/MainGui.cpp b/src/Main/MainGui.cpp index e8495f23cc..b405a07832 100644 --- a/src/Main/MainGui.cpp +++ b/src/Main/MainGui.cpp @@ -97,8 +97,9 @@ private: int main( int argc, char ** argv ) { - setlocale(LC_ALL, ""); // use native environment settings #if defined (FC_OS_LINUX) || defined(FC_OS_BSD) + setlocale(LC_ALL, ""); // use native environment settings + // Make sure to setup the Qt locale system before setting LANG and LC_ALL to C. // which is needed to use the system locale settings. (void)QLocale::system();