[libedit/f22] Add libedit-wchar.patch to dist-git
branto
branto at fedoraproject.org
Wed Mar 18 17:31:50 UTC 2015
commit 333be843869940ac1963cf0aaf80929637447b70
Author: Boris Ranto <branto at redhat.com>
Date: Wed Mar 18 18:31:13 2015 +0100
Add libedit-wchar.patch to dist-git
libedit-wchar.patch | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
---
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);
+ }
+
More information about the scm-commits
mailing list