diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2012-09-03 03:50:42 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2012-09-03 03:50:42 +0000 |
commit | f8715f9d4a3d17156620ed87e1292e9688a7b24e (patch) | |
tree | ed7879b70166de7a7fa5b90ee1e4d1c476bf0a63 /irc | |
parent | c02559afd65e88e966b17b2d407223a4bc855014 (diff) | |
download | ports-f8715f9d4a3d17156620ed87e1292e9688a7b24e.tar.gz ports-f8715f9d4a3d17156620ed87e1292e9688a7b24e.zip |
Notes
Diffstat (limited to 'irc')
-rw-r--r-- | irc/irssi/Makefile | 5 | ||||
-rw-r--r-- | irc/irssi/files/patch-irssi-utf8 | 38 |
2 files changed, 1 insertions, 42 deletions
diff --git a/irc/irssi/Makefile b/irc/irssi/Makefile index 619e49dabce9..41fc673a03c4 100644 --- a/irc/irssi/Makefile +++ b/irc/irssi/Makefile @@ -1,13 +1,10 @@ -# New ports collection makefile for: irssi -# Date created: 14 Apr 1999 -# Whom: Jim Mock <jim@FreeBSD.org> # # $FreeBSD$ # PORTNAME= irssi PORTVERSION= 0.8.15 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES?= irc MASTER_SITES= http://mirror.irssi.org/ diff --git a/irc/irssi/files/patch-irssi-utf8 b/irc/irssi/files/patch-irssi-utf8 deleted file mode 100644 index ab67286bf3d1..000000000000 --- a/irc/irssi/files/patch-irssi-utf8 +++ /dev/null @@ -1,38 +0,0 @@ -# -# $FreeBSD$ -# ---- src/fe-common/core/utf8.h (revision 5189) -+++ src/fe-common/core/utf8.h (working copy) -@@ -12,5 +12,6 @@ - int mk_wcwidth(unichar c); - - #define unichar_isprint(c) (((c) & ~0x80) >= 32) -+#define is_utf8_leading(c) (((c) & 0xc0) != 0x80) - - #endif ---- src/fe-text/textbuffer.c (revision 5189) -+++ src/fe-text/textbuffer.c (working copy) -@@ -23,6 +23,7 @@ - #include "module.h" - #include "misc.h" - #include "formats.h" -+#include "utf8.h" - - #include "textbuffer.h" - -@@ -157,6 +158,16 @@ - if (left > 0 && data[left-1] == 0) - left--; /* don't split the commands */ - -+ /* don't split utf-8 character. (assume we can split non-utf8 anywhere. */ -+ if (left < TEXT_CHUNK_USABLE_SIZE && !is_utf8_leading(data[left])) { -+ int i; -+ for (i = 1; i < 4 && left >= i; i++) -+ if (is_utf8_leading(data[left - i])) { -+ left -= i; -+ break; -+ } -+ } -+ - memcpy(chunk->buffer + chunk->pos, data, left); - chunk->pos += left; |