mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Make fs::path::string() always return utf-8 string
This commit is contained in:
parent
920c090f63
commit
2c3eade704
4 changed files with 6 additions and 6 deletions
|
|
@ -1206,7 +1206,11 @@ void SetupEnvironment()
|
|||
// A dummy locale is used to extract the internal default locale, used by
|
||||
// fs::path, which is then used to explicitly imbue the path.
|
||||
std::locale loc = fs::path::imbue(std::locale::classic());
|
||||
#ifndef WIN32
|
||||
fs::path::imbue(loc);
|
||||
#else
|
||||
fs::path::imbue(std::locale(loc, new std::codecvt_utf8_utf16<wchar_t>()));
|
||||
#endif
|
||||
}
|
||||
|
||||
bool SetupNetworking()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue