Skip to content

Commit 8209d43

Browse files
authored
Merge pull request #2834 from dscho/lctype-should-adapt-to-console-code-page
fixup! mingw: ensure valid CTYPE
2 parents bcabfe8 + 8a1fdd6 commit 8209d43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/mingw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3370,7 +3370,7 @@ static void setup_windows_environment(void)
33703370
#endif
33713371

33723372
if (!getenv("LC_ALL") && !getenv("LC_CTYPE") && !getenv("LANG"))
3373-
setenv("LC_CTYPE", "C", 1);
3373+
setenv("LC_CTYPE", "C.UTF-8", 1);
33743374

33753375
/*
33763376
* Change 'core.symlinks' default to false, unless native symlinks are

0 commit comments

Comments
 (0)