From f946f30845c103204a35e0537d8f09ed6c1a3841 Mon Sep 17 00:00:00 2001 From: Boris Ranto Date: Wed, 18 Mar 2015 18:30:59 +0100 Subject: [PATCH] Add libedit-wchar.patch to dist-git --- libedit-wchar.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 libedit-wchar.patch diff --git a/libedit-wchar.patch b/libedit-wchar.patch new file mode 100644 index 0000000..2827a22 --- /dev/null +++ b/libedit-wchar.patch @@ -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); + } +