From owner-freebsd-ports Thu Jul 18 16: 0:21 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0478837B400 for ; Thu, 18 Jul 2002 16:00:09 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2943143E65 for ; Thu, 18 Jul 2002 16:00:08 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6IN07JU086878 for ; Thu, 18 Jul 2002 16:00:07 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6IN07B7086877; Thu, 18 Jul 2002 16:00:07 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DAD3E37B400 for ; Thu, 18 Jul 2002 15:55:43 -0700 (PDT) Received: from kcwu.dyndns.org (u142-187.u61-70.giga.net.tw [61.70.142.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66E7343E5E for ; Thu, 18 Jul 2002 15:55:42 -0700 (PDT) (envelope-from kcwu@kcwu.dyndns.org) Received: (from kcwu@localhost) by kcwu.dyndns.org (8.11.6/8.11.5) id g6IMteo48140; Fri, 19 Jul 2002 06:55:40 +0800 (CST) (envelope-from kcwu) Message-Id: <200207182255.g6IMteo48140@kcwu.dyndns.org> Date: Fri, 19 Jul 2002 06:55:40 +0800 (CST) From: Kuang-che Wu Reply-To: Kuang-che Wu To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/40743: chinese/dictd: fix pr 40741 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 40743 >Category: ports >Synopsis: chinese/dictd: fix pr 40741 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jul 18 16:00:07 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Kuang-che Wu >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD m722 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Sat Apr 6 14:30:47 CST 2002 root@m722:/usr/obj/usr/src/sys/M722 i386 >Description: replace files/patch-index.c in pr 40741 with this one >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # files/patch-index.c # echo x - files/patch-index.c sed 's/^X//' >files/patch-index.c << 'END-of-files/patch-index.c' X--- index.c.orig Mon Apr 29 22:43:42 2002 X+++ index.c Fri Jul 19 05:23:01 2002 X@@ -120,6 +120,15 @@ X X /* FIXME. Optimize this inner loop. */ X while (*word && start < end && *start != '\t') { X+ if ((*start & 0x80) && start+1index->end) { X if (!compare( word, pt, database->index->end )) { X if (!previous || altcompare(previous, pt, database->index->end)) { X@@ -643,6 +655,7 @@ X char tmp; X dictWord *datum; X X+ if(*word & 0x80) return count; X #define CHECK \ X if ((pt = dict_index_search(buf, database->index)) \ X && !compare(buf, pt, database->index->end)) { \ X@@ -724,6 +737,11 @@ X if (isspace( *(const unsigned char *)w )) { X *pt++ = ' '; X } else { X+ if((*w & 0x80) && *(w+1)) { X+ *pt++=*w++; X+ *pt++=*w; X+ continue; X+ } X if (!isalnum( *(const unsigned char *)w )) continue; X *pt++ = tolower(*w); X } X@@ -790,6 +808,11 @@ X = binary_search( buf, i->start, i->end ); X } X for (j = '0'; j <= '9'; j++) { X+ buf[0] = j; X+ buf[1] = '\0'; X+ i->optStart[j] = binary_search( buf, i->start, i->end ); X+ } X+ for (j = 0x80; j <= 255; j++) { X buf[0] = j; X buf[1] = '\0'; X i->optStart[j] = binary_search( buf, i->start, i->end ); END-of-files/patch-index.c exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message