aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/irssi
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2006-08-01 09:28:51 +0800
committervanilla <vanilla@FreeBSD.org>2006-08-01 09:28:51 +0800
commitd95675c93def2c84bda0f0375bcb718a33521396 (patch)
tree3e4df1e12aff4639e7a76ea8cf0e814bc6273948 /chinese/irssi
parent536be5f4ac150e0161bb30954f158600f3c5cd36 (diff)
downloadfreebsd-ports-gnome-d95675c93def2c84bda0f0375bcb718a33521396.tar.gz
freebsd-ports-gnome-d95675c93def2c84bda0f0375bcb718a33521396.tar.zst
freebsd-ports-gnome-d95675c93def2c84bda0f0375bcb718a33521396.zip
Fix CJK length on utf8 mode.
PR: ports/101126 Submitted by: mhsin at mhsin.com
Diffstat (limited to 'chinese/irssi')
-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 c03c038c87a6..e4f465169983 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 000000000000..436eaf88c686
--- /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;