From: vsr Date: Mon, 3 Feb 2020 16:20:51 +0000 (+0300) Subject: bos #18621 Prevent resetting locale to system default one X-Git-Tag: V9_5_0a1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=47a3ab12ae8942eff86503140937c79e31550c2b;p=modules%2Fkernel.git bos #18621 Prevent resetting locale to system default one --- diff --git a/src/Basics/Basics_Utils.cxx b/src/Basics/Basics_Utils.cxx index cd18da5fa..1896cd796 100644 --- a/src/Basics/Basics_Utils.cxx +++ b/src/Basics/Basics_Utils.cxx @@ -108,7 +108,7 @@ namespace Kernel_Utils const wchar_t* decode(const char* encoded) { - setlocale(LC_ALL, ""); + //setlocale(LC_ALL, ""); size_t length = strlen(encoded) + sizeof(char); wchar_t* decoded = new wchar_t[length]; memset( decoded, '\0', length); @@ -123,7 +123,7 @@ namespace Kernel_Utils const char* encode(const wchar_t* decoded) { - setlocale(LC_ALL, ""); + //setlocale(LC_ALL, ""); size_t length = std::wcslen(decoded) + sizeof(wchar_t); char* encoded = new char[length]; memset( encoded, '\0', length);