Skip to content

Conversation

kblees
Copy link

@kblees kblees commented Apr 9, 2015

This should fix Issue #65

Git on native Windows exclusively uses UTF-8 for console output (both with
mintty and native console windows). Gettext uses setlocale() to determine
the output encoding for translated text, however, MSVCRT's setlocale()
doesn't support UTF-8. As a result, translated text is encoded in system
encoding (GetAPC()), and non-ASCII chars are mangled in console output.

Use gettext's bind_textdomain_codeset() to force the encoding to UTF-8 on
native Windows.

Signed-off-by: Karsten Blees <blees@dcon.de>
dscho added a commit that referenced this pull request Apr 9, 2015
gettext: always use UTF-8 on native Windows
@dscho dscho merged commit d846717 into git-for-windows:master Apr 9, 2015
@dscho
Copy link
Member

dscho commented Apr 9, 2015

Awesome!

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.

2 participants