~ubuntu-branches/ubuntu/trusty/skksearch/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/patches/plain-search.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Tatsuya Kinoshita
  • Date: 2006-10-27 21:26:57 UTC
  • mfrom: (3.1.2 edgy)
  • Revision ID: james.westby@ubuntu.com-20061027212657-0xu9qrgljl08hgy5
Tags: 0.0-12
* debian/skksearch.conf: Add entry for SKK-JISYO.china_taiwan.
* debian/copyright: Mention Debian packaging conditions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## plain-search.dpatch by KIHARA Hideto <deton@m1.interq.or.jp>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: Fix end condition in binary search algorithm for plain dictionaries 
 
6
## DP: (#209217).
 
7
 
 
8
Received: from [146.82.138.7] (helo=master.debian.org) by nu.ike.tottori-u.ac.jp with esmtp (Exim 3.36 #1 (Debian)) for ml@kawamura.net id 19ut2u-0001MC-00; Thu, 04 Sep 2003 21:17:04 +0900
 
9
Received: from a15-c1.data-hotel.net [203.174.65.19]  by master.debian.org with smtp (Exim 3.35 1 (Debian)) id 19ut2q-0000vR-00; Thu, 04 Sep 2003 07:17:00 -0500
 
10
Received: (qmail 71944 invoked by alias); 4 Sep 2003 21:16:44 +0900
 
11
Mailing-List: contact skk-help@ring.gr.jp; run by ezmlm
 
12
Precedence: bulk
 
13
X-No-Archive: yes
 
14
List-Post: <mailto:skk@ring.gr.jp>
 
15
Reply-To: skk@ring.gr.jp
 
16
List-Help: <mailto:skk-help@ring.gr.jp>
 
17
List-Unsubscribe: <mailto:skk-unsubscribe@ring.gr.jp>
 
18
List-Subscribe: <mailto:skk-subscribe@ring.gr.jp>
 
19
Delivered-To: mailing list skk@ring.gr.jp
 
20
Received: (qmail 71354 invoked from network); 4 Sep 2003 21:15:58 +0900
 
21
Date: Thu, 4 Sep 2003 21:16:41 +0900
 
22
From: KIHARA Hideto <deton@m1.interq.or.jp>
 
23
To: skk@ring.gr.jp
 
24
Message-ID: <20030904121641.GA2684@m1.interq.or.jp>
 
25
Mime-Version: 1.0
 
26
User-Agent: Mutt/1.4.1i-ja.1
 
27
Subject: [skk 5028] patch for skksearch
 
28
X-Bogosity: No, tests=bogofilter, spamicity=0.000004, version=0.14.4
 
29
X-UIDL: ''7"!Le8!!?#@!!?06"!
 
30
Content-Type: text/plain; charset="ISO-2022-JP"
 
31
Content-Transfer-Encoding: 7bit
 
32
 
 
33
skksearch-0.0�ѤΥѥå��Ǥ���
 
34
���۸��Υڡ����Ϥ⤦̵���ʤäƤ��ޤä��褦�Ǥ�����
 
35
Debian�Υѥå����������äƤ��ơ�
 
36
�ϤޤäƤ�ͤ򤿤ޤ˸�������Τǡ�SKK ML�ˤ�ή���Ƥ����ޤ���
 
37
# 2�����ͤ�����ˤ�2�����ή������Ǥ�����
 
38
 
 
39
* ����
 
40
�֤�g�פΤ褦���ɤߤ򸡺������skksearch��˽������CPU�򿩤��Ĥ֤���
 
41
 
 
42
* ȯ�����
 
43
okuri-ari entries������plain����(SKK-JISYO.JIS2��)��
 
44
�����оݼ���˴ޤޤ��Ȥ��ˡ�
 
45
�֤�g�פΤ褦��okuri-nasi entries���⼭���Ǿ������ɤߤ򸡺�����ȡ�
 
46
̵�¥롼�פˤϤޤ롣
 
47
 
 
48
CDB�����μ���ξ���ȯ�����ʤ���
 
49
 
 
50
* ����
 
51
okuri-ari entries�����ξ��ˡ��ե�������ΰ��֤�
 
52
okuri-ari entries�ν�λ���֤���ˤʤ뤬��
 
53
==����Ӥ��Ƥ��뤿��롼�פ�ȴ���ʤ���
 
54
 
 
55
* �ѥå�
 
56
==��>=���ѹ���
 
57
 
 
58
@DPATCH@
 
59
diff -urNad --exclude=CVS --exclude=.svn dic_plain.c.orig dic_plain.c
 
60
--- skksearch-0.0/dic_plain.c.orig      Fri Dec 15 18:06:06 2000
 
61
+++ skksearch-0.0/dic_plain.c   Sat Feb 22 23:04:10 2003
 
62
@@ -118,7 +118,7 @@
 
63
   while (1) {
 
64
     fseek(fp, (end + begin) / 2, SEEK_SET); /* center */
 
65
     fgets(buf, DIC_BUFSIZE, fp); /* Skip */
 
66
-    if ((half = ftell(fp)) == end) {
 
67
+    if ((half = ftell(fp)) >= end) {
 
68
       break;                   /* goto linear search */
 
69
     }
 
70
     fgets(buf, DIC_BUFSIZE, fp);