Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixup! mingw: ensure valid CTYPE #2834

Merged

Conversation

dscho
Copy link
Member

@dscho dscho commented Sep 25, 2020

This is a fix for #2802. It simply assumes that the console output code page is UTF-8.

This PR may very well also address #1087 and #1682, at long last.

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 git-for-windows#2802

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho force-pushed the lctype-should-adapt-to-console-code-page branch from 3ea01d6 to 8a1fdd6 Compare September 29, 2020 10:11
@dscho dscho self-assigned this Sep 29, 2020
@dscho
Copy link
Member Author

dscho commented Sep 29, 2020

Verified by @fcharlie

@dscho dscho merged commit 8209d43 into git-for-windows:main Sep 29, 2020
@dscho dscho added this to the Next release milestone Sep 29, 2020
@dscho dscho deleted the lctype-should-adapt-to-console-code-page branch September 29, 2020 16:14
dscho added a commit to git-for-windows/build-extra that referenced this pull request Sep 29, 2020
Non-ASCII output of paged Git commands [is now rendered correctly in
Windows Terminal](git-for-windows/git#2834).

Signed-off-by: Johannes Schindelin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant