Mercurial > pidgin.yaz
comparison finch/libgnt/gntkeys.c @ 28268:3b6f50b68f5d
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.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 16 Aug 2009 03:22:58 +0000 |
parents | 135ee310d62c |
children |
comparison
equal
deleted
inserted
replaced
28264:027f342110b6 | 28268:3b6f50b68f5d |
---|---|
164 /* Apparently this is necessary for urxvt and screen and xterm */ | 164 /* Apparently this is necessary for urxvt and screen and xterm */ |
165 if (strstr(term, "screen") == term || strcmp(term, "rxvt-unicode") == 0 || | 165 if (strstr(term, "screen") == term || strcmp(term, "rxvt-unicode") == 0 || |
166 strstr(term, "xterm") == term || | 166 strstr(term, "xterm") == term || |
167 strstr(term, "vt100") == term) | 167 strstr(term, "vt100") == term) |
168 *(text + 1) = 'O'; | 168 *(text + 1) = 'O'; |
169 } else if (*(unsigned char*)text == 195) { | 169 } else if (g_utf8_get_char(text) == 195) { |
170 if (*(text + 2) == 0 && strstr(term, "xterm") == term) { | 170 if (*(text + 2) == 0 && strstr(term, "xterm") == term) { |
171 *(text) = 27; | 171 *(text) = 27; |
172 *(text + 1) -= 64; /* Say wha? */ | 172 *(text + 1) -= 64; /* Say wha? */ |
173 } | 173 } |
174 } | 174 } |