Add libedit-wchar.patch to dist-git

This commit is contained in:
Boris Ranto 2015-03-18 18:30:59 +01:00
parent d9efc791b2
commit f946f30845
1 changed files with 17 additions and 0 deletions

17
libedit-wchar.patch Normal file
View File

@ -0,0 +1,17 @@
diff -rup libedit-20141029-3.1-bak/src/eln.c libedit-20141029-3.1/src/eln.c
--- libedit-20141029-3.1-bak/src/eln.c 2015-03-14 09:19:41.804370242 +0100
+++ libedit-20141029-3.1/src/eln.c 2015-03-15 08:58:36.182162570 +0100
@@ -76,9 +76,11 @@ el_gets(EditLine *el, int *nread)
{
const wchar_t *tmp;
- el->el_flags |= IGNORE_EXTCHARS;
+ if (!(el->el_flags & CHARSET_IS_UTF8))
+ el->el_flags |= IGNORE_EXTCHARS;
tmp = el_wgets(el, nread);
- el->el_flags &= ~IGNORE_EXTCHARS;
+ if (!(el->el_flags & CHARSET_IS_UTF8))
+ el->el_flags &= ~IGNORE_EXTCHARS;
return ct_encode_string(tmp, &el->el_lgcyconv);
}