forked from msys2/MINGW-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ninja: Fix slow cursor update regression
Reported in ninja-build/ninja#2435 PR waiting for approval: ninja-build/ninja#2437.
- Loading branch information
Showing
2 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
mingw-w64-ninja/0001-RealDiskInterface-Do-not-set-locale-to-an-empty-stri.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 3d1a5fa9ab4a38fd5c2004820907158e1e774858 Mon Sep 17 00:00:00 2001 | ||
From: Orgad Shaneh <orgad.shaneh@audiocodes.com> | ||
Date: Sat, 4 May 2024 22:49:06 +0300 | ||
Subject: [PATCH] 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. | ||
--- | ||
src/disk_interface.cc | 2 -- | ||
1 file changed, 2 deletions(-) | ||
|
||
diff --git a/src/disk_interface.cc b/src/disk_interface.cc | ||
index 5aba2179ef..1259c612f4 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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters