qulogic/libgnt

Make gnt_keys_refine UTF8-compatible. Note, the rest of the tests don't
v2.6.0 v2.6.1
2009-08-16, Elliott Sales de Andrade
d51323c6568a
Parents 3ebcc919d350
Children ad4756bea4e2
Make gnt_keys_refine UTF8-compatible. Note, the rest of the tests don't
need to be changed as multi-byte UTF8 values are always >128.

Fixes #2504.
  • +1 -1
    gntkeys.c
  • --- a/gntkeys.c Sun Jun 21 16:40:15 2009 +0000
    +++ b/gntkeys.c Sun Aug 16 03:22:58 2009 +0000
    @@ -166,7 +166,7 @@
    strstr(term, "xterm") == term ||
    strstr(term, "vt100") == term)
    *(text + 1) = 'O';
    - } else if (*(unsigned char*)text == 195) {
    + } else if (g_utf8_get_char(text) == 195) {
    if (*(text + 2) == 0 && strstr(term, "xterm") == term) {
    *(text) = 27;
    *(text + 1) -= 64; /* Say wha? */