Add libedit-wchar.patch to dist-git
This commit is contained in:
parent
d9efc791b2
commit
f946f30845
17
libedit-wchar.patch
Normal file
17
libedit-wchar.patch
Normal 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);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user