svn commit: r376504 - in head/devel/libedit: . files
Baptiste Daroussin
bapt at FreeBSD.org
Wed Jan 7 22:44:05 UTC 2015
Author: bapt
Date: Wed Jan 7 22:44:04 2015
New Revision: 376504
URL: https://svnweb.freebsd.org/changeset/ports/376504
QAT: https://qat.redports.org/buildarchive/r376504/
Log:
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
Added:
head/devel/libedit/files/patch-src_el.c (contents, props changed)
head/devel/libedit/files/patch-src_eln.c (contents, props changed)
Modified:
head/devel/libedit/Makefile
Modified: head/devel/libedit/Makefile
==============================================================================
--- head/devel/libedit/Makefile Wed Jan 7 22:38:36 2015 (r376503)
+++ head/devel/libedit/Makefile Wed Jan 7 22:44:04 2015 (r376504)
@@ -4,6 +4,7 @@
PORTNAME= libedit
PORTVERSION= ${EDITVERSION}.${EDITDATE}
DISTVERSION= ${EDITDATE}-${EDITVERSION}
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://thrysoee.dk/editline/
Added: head/devel/libedit/files/patch-src_el.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libedit/files/patch-src_el.c Wed Jan 7 22:44:04 2015 (r376504)
@@ -0,0 +1,11 @@
+--- src/el.c.orig 2014-06-18 19:06:35 UTC
++++ src/el.c
+@@ -121,7 +121,7 @@ el_init_fd(const char *prog, FILE *fin,
+ */
+ el->el_flags = 0;
+ #ifdef WIDECHAR
+- if (setlocale(LC_CTYPE, NULL) != NULL){
++ if (setlocale(LC_CTYPE, "") != NULL){
+ if (strcmp(nl_langinfo(CODESET), "UTF-8") == 0)
+ el->el_flags |= CHARSET_IS_UTF8;
+ }
Added: head/devel/libedit/files/patch-src_eln.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libedit/files/patch-src_eln.c Wed Jan 7 22:44:04 2015 (r376504)
@@ -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);
+ }
+
More information about the svn-ports-head
mailing list