diff options
author | Steve Wills <swills@FreeBSD.org> | 2018-06-16 22:47:21 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2018-06-16 22:47:21 +0000 |
commit | 2daed136237e90e1c0383df58e53df53e6ebbbf0 (patch) | |
tree | 32fa34265b0bdf77dafb2a8fc16c95f32c64fb81 /editors | |
parent | f999d34d71ae7878951620dc0e22ef979c2b6b57 (diff) |
editors/nvi-m17n: fix CJK display problem
PR: 220013
Submitted by: Satoshi TOMIOKA <tomioka.satoshi.ml@gmail.com>
Reported by: Yasuhito FUTATSUKI <freebsd-bug-report-yf@yf.bsdclub.org>
Notes
Notes:
svn path=/head/; revision=472573
Diffstat (limited to 'editors')
-rw-r--r-- | editors/nvi-m17n/Makefile | 2 | ||||
-rw-r--r-- | editors/nvi-m17n/files/patch-common-multibyte.c | 8 | ||||
-rw-r--r-- | editors/nvi-m17n/files/patch-configure | 15 |
3 files changed, 10 insertions, 15 deletions
diff --git a/editors/nvi-m17n/Makefile b/editors/nvi-m17n/Makefile index b901d2e14961..bfc6becebec6 100644 --- a/editors/nvi-m17n/Makefile +++ b/editors/nvi-m17n/Makefile @@ -3,7 +3,7 @@ PORTNAME= nvi PORTVERSION= 1.79.20040608 -PORTREVISION= 4 +PORTREVISION= 5 PORTEPOCH= 1 CATEGORIES?= editors MASTER_SITES= ftp://ftp.mk.bsdclub.org/pub/FreeBSD/distfiles/ \ diff --git a/editors/nvi-m17n/files/patch-common-multibyte.c b/editors/nvi-m17n/files/patch-common-multibyte.c index c18afc51d54e..5b46d9da0b02 100644 --- a/editors/nvi-m17n/files/patch-common-multibyte.c +++ b/editors/nvi-m17n/files/patch-common-multibyte.c @@ -1,8 +1,10 @@ ---- ../common/multibyte.c.orig 2017-01-07 18:04:20.087312000 +0900 -+++ ../common/multibyte.c 2017-01-07 18:05:53.585988000 +0900 -@@ -1455,7 +1455,7 @@ +--- ../common/multibyte.c.orig 2017-11-17 21:47:04.305764000 +0900 ++++ ../common/multibyte.c 2017-11-17 21:58:19.218532000 +0900 +@@ -1454,8 +1454,9 @@ + if (maybe == 0) return ename; ++ if ( (maxfunc!=1) && (try==maybe) ) continue ; for (i = 0; i < maxfunc; i++) { - if (maybe == (1 << i)) + if (maybe & (1 << i)) diff --git a/editors/nvi-m17n/files/patch-configure b/editors/nvi-m17n/files/patch-configure index e87b168ff036..f1645d401bb4 100644 --- a/editors/nvi-m17n/files/patch-configure +++ b/editors/nvi-m17n/files/patch-configure @@ -1,6 +1,6 @@ --- configure.orig 2016-01-31 11:55:44 UTC -+++ configure -@@ -1805,10 +1805,8 @@ if test "$vi_cv_canna" = "yes"; then ++++ configure 2017-11-28 18:37:14.184568000 +0900 +@@ -1805,10 +1805,8 @@ case "$host_os" in bsdi2.1) vi_cannapath="/usr/contrib/canna";; @@ -13,19 +13,12 @@ *) vi_cannapath="/usr/local/canna";; esac -@@ -2155,13 +2153,13 @@ fi - # [ --disable-curses DON'T use the nvi-provided curses routines.], - # [vi_cv_curses="other curses"], [vi_cv_curses="bundled curses"]) - #AC_MSG_RESULT($vi_cv_curses) --vi_cv_curses="bundled curses" -+vi_cv_curses="other curses" - case "$vi_cv_curses" in - "bundled curses") +@@ -2161,7 +2159,7 @@ CPPFLAGS="-I\$(srcdir)/curses $CPPFLAGS" cobjs="\$(COBJS)";; "other curses") - LIBS="-lcurses $LIBS";; -+ LIBS="-lncurses $LIBS";; ++ LIBS="-lncursesw $LIBS";; esac echo $ac_n "checking for sys/mman.h""... $ac_c" 1>&6 |