From d95675c93def2c84bda0f0375bcb718a33521396 Mon Sep 17 00:00:00 2001 From: vanilla Date: Tue, 1 Aug 2006 01:28:51 +0000 Subject: 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 (limited to 'chinese') 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; -- cgit v1.1