summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2006-08-01 01:28:51 +0000
committervanilla <vanilla@FreeBSD.org>2006-08-01 01:28:51 +0000
commitd95675c93def2c84bda0f0375bcb718a33521396 (patch)
tree3e4df1e12aff4639e7a76ea8cf0e814bc6273948
parent536be5f4ac150e0161bb30954f158600f3c5cd36 (diff)
downloadFreeBSD-ports-d95675c93def2c84bda0f0375bcb718a33521396.zip
FreeBSD-ports-d95675c93def2c84bda0f0375bcb718a33521396.tar.gz
Fix CJK length on utf8 mode.
PR: ports/101126 Submitted by: mhsin at mhsin.com
-rw-r--r--chinese/irssi/Makefile5
-rw-r--r--chinese/irssi/files/patch-utf8_break11
2 files changed, 14 insertions, 2 deletions
diff --git a/chinese/irssi/Makefile b/chinese/irssi/Makefile
index c03c038..e4f4651 100644
--- a/chinese/irssi/Makefile
+++ b/chinese/irssi/Makefile
@@ -5,7 +5,7 @@
# $FreeBSD$
#
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= chinese
MAINTAINER= vanilla@FreeBSD.org
@@ -13,6 +13,7 @@ COMMENT= A zh-tw cursor movement friendly, wrapping clean irssi
MASTERDIR= ${.CURDIR}/../../irc/irssi
-EXTRA_PATCHES= ${.CURDIR}/files/patch-irssi.conf
+EXTRA_PATCHES= ${.CURDIR}/files/patch-irssi.conf \
+ ${.CURDIR}/files/patch-utf8_break
.include "${MASTERDIR}/Makefile"
diff --git a/chinese/irssi/files/patch-utf8_break b/chinese/irssi/files/patch-utf8_break
new file mode 100644
index 0000000..436eaf8
--- /dev/null
+++ b/chinese/irssi/files/patch-utf8_break
@@ -0,0 +1,11 @@
+--- src/fe-text/textbuffer-view.c.orig Mon Jul 31 06:28:09 2006
++++ src/fe-text/textbuffer-view.c Mon Jul 31 06:28:19 2006
+@@ -255,7 +255,7 @@
+ continue;
+ }
+
+- if (!view->utf8 && char_len > 1) {
++ if (char_len > 1) {
+ last_space = xpos;
+ last_space_ptr = next_ptr;
+ last_color = color;
OpenPOWER on IntegriCloud