From f28d25c05befdd220cd511c0111aa9d2085da843 Mon Sep 17 00:00:00 2001 From: Avia Avraham <145359432+AviaAv@users.noreply.github.com> Date: Tue, 10 Dec 2024 11:55:07 +0200 Subject: [PATCH] fix error 42 on unicode user names --- third-party/rsutils/src/special-folder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/third-party/rsutils/src/special-folder.cpp b/third-party/rsutils/src/special-folder.cpp index 79bc45d6f7..3717faa560 100644 --- a/third-party/rsutils/src/special-folder.cpp +++ b/third-party/rsutils/src/special-folder.cpp @@ -3,6 +3,7 @@ #include #include +#include #ifdef _WIN32 @@ -25,6 +26,7 @@ namespace os { std::string get_special_folder( special_folder f ) { + setlocale(LC_ALL, ".UTF8"); std::string res; #ifdef _WIN32