1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

temporary trick for work with different locales (koi8r for example)

This commit is contained in:
vva@eagle.mysql.r18.ru
2003-03-31 18:39:14 -04:00
parent 028c35847f
commit 9686b98b8e
2 changed files with 132 additions and 132 deletions

View File

@@ -93,7 +93,7 @@ private void
re_addc(EditLine *el, int c)
{
if (isprint(c)) {
if (isprint(c) || ((unsigned char)c)>127) {
re_putc(el, c, 1);
return;
}
@@ -954,7 +954,7 @@ re_refresh_cursor(EditLine *el)
h = 1;
v++;
}
} else if (!isprint((unsigned char) c)) {
} else if (!isprint((unsigned char) c) || ((unsigned char)c)>127) {
h += 3;
if (h > th) { /* if overflow, compensate */
h = h - th;
@@ -1047,7 +1047,7 @@ re_fastaddc(EditLine *el)
char mc = (c == '\177') ? '?' : (c | 0100);
re_fastputc(el, '^');
re_fastputc(el, mc);
} else if (isprint((unsigned char) c)) { /* normal char */
} else if (isprint((unsigned char) c) || ((unsigned char)c)>127) { /* normal char */
re_fastputc(el, c);
} else {
re_fastputc(el, '\\');