RealDiskInterface: Do *not* set locale to an empty string

It causes the cursor handling to be extremely slow on MinGW.

Added in #2321.

Fixes #2435.
This commit is contained in:
Orgad Shaneh 2024-05-04 22:49:06 +03:00
parent f07dca3185
commit 3d1a5fa9ab
1 changed files with 0 additions and 2 deletions

View File

@ -161,8 +161,6 @@ bool DiskInterface::MakeDirs(const string& path) {
RealDiskInterface::RealDiskInterface()
#ifdef _WIN32
: use_cache_(false), long_paths_enabled_(false) {
setlocale(LC_ALL, "");
// Probe ntdll.dll for RtlAreLongPathsEnabled, and call it if it exists.
HINSTANCE ntdll_lib = ::GetModuleHandleW(L"ntdll");
if (ntdll_lib) {