Date: Wed, 19 Jul 2006 23:20:03 +0800 From: chinsan <chinsan.tw@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/100545: [MAINTAINER] chinese/zhcon: Fix input error on some Big5 range Message-ID: <20060719151530.62E652FFEC@smtp2.bc.hgc.com.tw> Resent-Message-ID: <200607191520.k6JFKESu066951@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 100545 >Category: ports >Synopsis: [MAINTAINER] chinese/zhcon: Fix input error on some Big5 range >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Jul 19 15:20:14 GMT 2006 >Closed-Date: >Last-Modified: >Originator: chinsan >Release: FreeBSD 6.1-STABLE i386 >Organization: FreeBSD Taiwan >Environment: System: FreeBSD chinsan2.twbbs.org 6.1-STABLE FreeBSD 6.1-STABLE #1: Fri Jun 2 16:44:35 CST >Description: - Fix input error on some Big5 range - Summitted by Edward G.J. Lee <edt1023@info.sayya.org> Thanks. Added file(s): - files/patch-src-winime.cpp - files/patch-src-winime.h Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- zhcon-0.2.5_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/chinese/zhcon/Makefile /usr/home/chinsan/project/zhcon/Makefile --- /usr/ports/chinese/zhcon/Makefile Mon Jun 12 04:24:44 2006 +++ /usr/home/chinsan/project/zhcon/Makefile Wed Jul 19 23:17:51 2006 @@ -7,6 +7,7 @@ PORTNAME= zhcon PORTVERSION= 0.2.5 +PORTREVISION= 1 CATEGORIES= chinese MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff -ruN --exclude=CVS /usr/ports/chinese/zhcon/files/patch-src-winime.cpp /usr/home/chinsan/project/zhcon/files/patch-src-winime.cpp --- /usr/ports/chinese/zhcon/files/patch-src-winime.cpp Thu Jan 1 08:00:00 1970 +++ /usr/home/chinsan/project/zhcon/files/patch-src-winime.cpp Wed Jul 19 22:37:56 2006 @@ -0,0 +1,11 @@ +--- src/winime.cpp.orig Tue Apr 25 00:38:28 2006 ++++ src/winime.cpp Wed Jul 19 22:29:47 2006 +@@ -184,6 +184,8 @@ + p++; + while (IsGB2312_1(*p) && IsGB2312_2(*(p + 1))) + p += 2; ++ while (IsBIG5_1(*p) && IsBIG5_2(*(p + 1))) ++ p += 2; + return !IsHzCode1(*p); + } + diff -ruN --exclude=CVS /usr/ports/chinese/zhcon/files/patch-src-winime.h /usr/home/chinsan/project/zhcon/files/patch-src-winime.h --- /usr/ports/chinese/zhcon/files/patch-src-winime.h Thu Jan 1 08:00:00 1970 +++ /usr/home/chinsan/project/zhcon/files/patch-src-winime.h Wed Jul 19 22:37:56 2006 @@ -0,0 +1,15 @@ +--- src/winime.h.orig Tue Apr 25 00:38:26 2006 ++++ src/winime.h Wed Jul 19 22:27:58 2006 +@@ -68,6 +68,12 @@ + bool IsGB2312_2(char c) const { + return c >= 0xA1 && c <= 0xFE; + } ++ bool IsBIG5_1(char c) const { ++ return c >= 0xA1 && c <= 0xFE; ++ } ++ bool IsBIG5_2(char c) const { ++ return c >= 0x40 && c <= 0x7E; ++ } + + void AddCandilist(char*& p,unsigned& buflen); + void SkipNext(char*& rp); --- zhcon-0.2.5_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060719151530.62E652FFEC>