Skip to content

Commit 3d1a5fa

Browse files
committed
RealDiskInterface: Do *not* set locale to an empty string
It causes the cursor handling to be extremely slow on MinGW. Added in ninja-build#2321. Fixes ninja-build#2435.
1 parent f07dca3 commit 3d1a5fa

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/disk_interface.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,6 @@ bool DiskInterface::MakeDirs(const string& path) {
161161
RealDiskInterface::RealDiskInterface()
162162
#ifdef _WIN32
163163
: use_cache_(false), long_paths_enabled_(false) {
164-
setlocale(LC_ALL, "");
165-
166164
// Probe ntdll.dll for RtlAreLongPathsEnabled, and call it if it exists.
167165
HINSTANCE ntdll_lib = ::GetModuleHandleW(L"ntdll");
168166
if (ntdll_lib) {

0 commit comments

Comments
 (0)