]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
bos #18621 Prevent resetting locale to system default one
authorvsr <vsr@opencascade.com>
Mon, 3 Feb 2020 16:20:51 +0000 (19:20 +0300)
committervsr <vsr@opencascade.com>
Mon, 3 Feb 2020 16:21:30 +0000 (19:21 +0300)
src/Basics/Basics_Utils.cxx

index cd18da5fa8b631cd754d49e961e9afa80fb2273c..1896cd796c60e1684d7d6ef3d90a8ae2ae6b4018 100644 (file)
@@ -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);