Skip to content

Commit aca02ab

Browse files
orgadsjhasse
authored andcommitted
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.
1 parent 436abee commit aca02ab

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎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)
⌂ 换网址