author | Ozan Çağlayan <ozan@pardus.org.tr> | |
Tue, 19 Apr 2011 05:38:40 +0000 (08:38 +0300) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 3 May 2011 01:38:44 +0000 (21:38 -0400) | ||
commit | ab7ff83bde6294f620a49bef3a8f8b617ef435ab | |
tree | 11ca141215e475c32e2c3067a31a719b440414b9 | tree | snapshot |
parent | 0cd8f8485547a641873db71319da97ddc123b197 | commit | diff |
Use locale-unaware methods for case conversion
Problem:
On a tr_TR.UTF-8 locale, adding a key binding to tigrc can not be
correctly parsed if the keymap contains 'i' like main, generic, etc.
as they are wrongly converted to upper case.
In languages like Turkish, 'i' is not converted to 'I' as they're
different characters. So one should never use locale-aware conversion
methods which will break things in some locales.
See:
http://www.mattryall.net/blog/2009/02/the-infamous-turkish-locale-bug
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
Problem:
On a tr_TR.UTF-8 locale, adding a key binding to tigrc can not be
correctly parsed if the keymap contains 'i' like main, generic, etc.
as they are wrongly converted to upper case.
In languages like Turkish, 'i' is not converted to 'I' as they're
different characters. So one should never use locale-aware conversion
methods which will break things in some locales.
See:
http://www.mattryall.net/blog/2009/02/the-infamous-turkish-locale-bug
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
tig.h | diff | blob | history |