Skip to content

Commit

Permalink
fix error 42 on unicode user names
Browse files Browse the repository at this point in the history
  • Loading branch information
AviaAv committed Dec 10, 2024
1 parent 0033401 commit f28d25c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions third-party/rsutils/src/special-folder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <rsutils/os/special-folder.h>
#include <rsutils/easylogging/easyloggingpp.h>
#include <locale.h>

#ifdef _WIN32

Expand All @@ -25,6 +26,7 @@ namespace os {

std::string get_special_folder( special_folder f )
{
setlocale(LC_ALL, ".UTF8");
std::string res;

#ifdef _WIN32
Expand Down

0 comments on commit f28d25c

Please sign in to comment.