summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2024-05-04 19:49:06 (GMT)
committerJan Niklas Hasse <jhasse@bixense.com>2024-05-11 11:41:12 (GMT)
commitaca02ab71182132c334c05fb532cc1c6b59c5808 (patch)
tree9324429e448f22c4f3ed58eec85a9269233ae2d0
parent436abee2faf087d80ea94dd978c1c725ab337da7 (diff)
downloadNinja-aca02ab71182132c334c05fb532cc1c6b59c5808.zip
Ninja-aca02ab71182132c334c05fb532cc1c6b59c5808.tar.gz
Ninja-aca02ab71182132c334c05fb532cc1c6b59c5808.tar.bz2
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.
-rw-r--r--src/disk_interface.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/disk_interface.cc b/src/disk_interface.cc
index 0f27e9d..8102a0e 100644
--- a/src/disk_interface.cc
+++ b/src/disk_interface.cc
@@ -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) {