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 ninja-build#2321.

Fixes ninja-build#2435.

(cherry picked from commit 3d1a5fa)
  • Loading branch information
orgads committed May 5, 2024
1 parent 65d0dfc commit e4b74a8
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 e4b74a8

Please sign in to comment.