<pre style='margin:0'>
MarcusCalhoun-Lopez pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/760795dd90b00862e47b4bf40a88da99e36688bd">https://github.com/macports/macports-ports/commit/760795dd90b00862e47b4bf40a88da99e36688bd</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 760795d libedit: allow typing non-ASCII characters
</span>760795d is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 760795dd90b00862e47b4bf40a88da99e36688bd
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sat Dec 3 17:45:05 2016 -0700
<span style='display:block; white-space:pre;color:#404040;'> libedit: allow typing non-ASCII characters
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> fixes https://trac.macports.org/ticket/52866
</span>---
devel/libedit/Portfile | 6 ++++++
devel/libedit/files/patch-non_ascii.diff | 15 +++++++++++++++
2 files changed, 21 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libedit/Portfile b/devel/libedit/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0736fd9..3ee7837 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/libedit/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libedit/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,6 +6,7 @@ PortGroup muniversal 1.0
</span> name libedit
epoch 20090923
version 20160903-3.1
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories devel
platforms darwin
license BSD
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -31,6 +32,11 @@ patchfiles doc__Makefile.in.patch \
</span> wcsdup.patch \
configure.patch
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# see https://trac.macports.org/ticket/52866
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# this patch is taken from
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://opensource.apple.com/source/libedit/libedit-48/src/el.c.auto.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-non_ascii.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-patch {
copy ${filespath}/getline.c ${worksrcpath}/src
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libedit/files/patch-non_ascii.diff b/devel/libedit/files/patch-non_ascii.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..a08abb6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libedit/files/patch-non_ascii.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff -ur src/el.c /Users/macports/Fix/libedit-48/src/el.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/el.c 2012-12-13 13:01:25.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/el.c.orig 2013-02-07 11:05:15.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -123,7 +123,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Initialize all the modules. Order is important!!!
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ el->el_flags = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (setlocale(LC_CTYPE, NULL) != NULL){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ char *loc = setlocale(LC_CTYPE, NULL);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (loc != NULL && strcmp(loc, "C") == 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ loc = setlocale(LC_CTYPE, "");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (loc != NULL) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (strcmp(nl_langinfo(CODESET), "UTF-8") == 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ el->el_flags |= CHARSET_IS_UTF8;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span></pre><pre style='margin:0'>
</pre>