diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-01-07 22:44:04 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-01-07 22:44:04 +0000 |
commit | cf8b244f11b03123342e8f16aa20614f1c19b922 (patch) | |
tree | e657076cb06568ba4b4fb24b89c7eb3e0846cce2 /devel/libedit/files/patch-src_eln.c | |
parent | - Use options; (diff) |
Fix Unicode environemnt detection
Fix reading unicode lines
More work is needed for part of the readline compatibility, this is good enough
for the sqlite shell to accept unicode but not for ruby's irb yet
Notes
Notes:
svn path=/head/; revision=376504
Diffstat (limited to 'devel/libedit/files/patch-src_eln.c')
-rw-r--r-- | devel/libedit/files/patch-src_eln.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/libedit/files/patch-src_eln.c b/devel/libedit/files/patch-src_eln.c new file mode 100644 index 000000000000..96c826b1299f --- /dev/null +++ b/devel/libedit/files/patch-src_eln.c @@ -0,0 +1,16 @@ +--- src/eln.c.orig 2015-01-07 22:26:24 UTC ++++ src/eln.c +@@ -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); + } + |