mirror of https://github.com/ninja-build/ninja.git
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.
This commit is contained in:
parent
f07dca3185
commit
3d1a5fa9ab
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue