Skip to content

Commit

Permalink
RealDiskInterface: Do *not* set locale to an empty string
Browse files Browse the repository at this point in the history
It causes the cursor handling to be extremely slow on MinGW.

Added in #2321.

Fixes #2435.
  • Loading branch information
orgads authored and jhasse committed May 11, 2024
1 parent 436abee commit aca02ab
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/disk_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit aca02ab

Please sign in to comment.