Git for Windows under ConEmu : can't type any accent without it being replaced by "é" (for é)

253 views
Skip to first unread message

Baldurien

unread,
Dec 7, 2016, 4:52:58 PM12/7/16
to git-for-windows
Hello,

Since the new version (git version 2.11.0.windows.1) on WIndows 7 with ConEmu 161203, I can not type accent without them being replaced by their UTF-8 "ASCII" counterpart (eg:  é -> é, è -> è, etc). The git bash (mintty) emulator works as well as Git CMD.
It seems that msys/git for windows no longer recognize ConEmu as unicode (while it is/was). 

After some checks, setting LC_ALL to C.UTF-8 (instead of "C") fix the problem.

Why the change in behavior ?

Regards,
Baldurien

Baldurien

unread,
Dec 7, 2016, 5:48:57 PM12/7/16
to git-for-windows
I've found one reason to NOT set locale to C.UTF-8: under Git bash, here's the result:

[23:43:38] /tmp [1.8.0_112]
$ locale
LANG=en_US.utf8
LC_ALL=C
[23:43:41] /tmp [1.8.0_112]
$ find a
find: 'a': No such file or directory
[23:43:43] /tmp [1.8.0_112]
$ export LC_ALL=C.UTF-8
[23:43:54] /tmp [1.8.0_112]
$ find a
find: âaâ: No such file or directory


Find display accentuated a letters that should read as (here, under ConEMU with LC_ALL=C.UTF-8):

$ find a
find: ‘a’: No such file or directory


=> mintty does not use Unicode by default. The character set is not properly set:

Baldurien

unread,
Dec 7, 2016, 5:50:15 PM12/7/16
to git-for-windows
To amend my answer: "mintty does not use Unicode by default. The character set is not properly set, and should be set to UTF-8 in the options (see screenshot)"


Le mercredi 7 décembre 2016 22:52:58 UTC+1, Baldurien a écrit :
Reply all
Reply to author
Forward
0 new messages