From 47a3ab12ae8942eff86503140937c79e31550c2b Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 3 Feb 2020 19:20:51 +0300 Subject: [PATCH] bos #18621 Prevent resetting locale to system default one --- src/Basics/Basics_Utils.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2