From de00e5a0fc0f75c48e13cd5daa27edf03587fa4a Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Tue, 1 Aug 2006 01:28:51 +0000 Subject: [PATCH] Fix CJK length on utf8 mode. PR: ports/101126 Submitted by: mhsin at mhsin.com --- chinese/irssi/Makefile | 5 +++-- chinese/irssi/files/patch-utf8_break | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 chinese/irssi/files/patch-utf8_break 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;