Skip to content

Commit 8a1fdd6

Browse files
committed
fixup! mingw: ensure valid CTYPE
Originally, the intention was to set `LC_CTYPE=C.UTF-8`, but that elicited some bug report. Sadly, the to-be-fixed-up commit's message does not record this properly. Having searched for a while, it would appear to this developer that the issue was ConEmu, as mentioned here: https://groups.google.com/g/git-for-windows/c/9_abrdlqi48/m/S9pJE56ZDgAJ This was a long time ago, and re-testing with a current ConEmu failed to reproduce the original issue. So let's just go ahead and set `LC_CTYPE=C.UTF-8` (unless something else was _already_ specified via `LANG`, `LC_ALL` or `LC_CTYPE`). This fixes #2802 Signed-off-by: Johannes Schindelin <[email protected]>
1 parent bcabfe8 commit 8a1fdd6

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)