Great Circle Associates

XCIN Mail-list
(January 2001)


Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: bimsphone 選詞 bug
From: Kuang-che Wu <kcwu@ck.tp.edu.tw>
Date: Fri, 5 Jan 2001 15:12:14 +0800
To: xcin@linux.org.tw
Delivered-To: xcin-gate@tlug.sinica.edu.tw
Delivered-To: xcin-list@tlug.sinica.edu.tw
Reply-To: xcin@tlug.sinica.edu.tw
User-Agent: Mutt/1.2.4i

當待選詞超過一面時, 第二面的 mcch_grouping 會填錯,
譬如: 輸入 和氏璧 再按向上鍵選詞, 翻到第二頁發現有問題


--- bimsphone.c.old     Fri Jan  5 14:37:48 2001
+++ bimsphone.c Fri Jan  5 13:57:25 2001
@@ -510,7 +510,7 @@
        char *str;
        for (i=base, j=0, word=0; j<cf->n_selphr && i<num; i++, j++) {
            str = (char *)selection[i];
-           tmp = inpinfo->mcch_grouping[i+1] = strlen(str)/2;
+           tmp = inpinfo->mcch_grouping[j+1] = strlen(str)/2;
            if (word+tmp >= MCCH_BUFSIZE)
                break;
            for (; *str; word++, str+=2) {


To Unsubscribe: send mail to majordomo@linux.org.tw
with "unsubscribe xcin" in the body of the message


Indexed By Date Previous: 注音填補 [50001-51000]
From: "Tzu-hsien Yu" <thyu@ck.tp.edu.tw>
Next: Add Tsi
From: Edward Lee <edward.@kimo.com>
Indexed By Thread Previous: 注音填補 [50001-51000]
From: "Tzu-hsien Yu" <thyu@ck.tp.edu.tw>
Next: Re: bimsphone 選詞 bug
From: thhsieh@tlug.sinica.edu.tw