Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 231568 - [chewing] Look up table is showing candidates of previous look-up.
Summary: [chewing] Look up table is showing candidates of previous look-up.
Alias: None
Product: Fedora
Classification: Fedora
Component: libchewing
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Caius Chance
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2007-03-09 01:56 UTC by Caius Chance
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: F7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-10-02 06:33:56 UTC

Attachments (Terms of Use)

Description Caius Chance 2007-03-09 01:56:09 UTC
+++ This bug was initially created as a clone of Bug #220288 +++

+++ This bug was initially created as a clone of Bug #218565 +++

Description of problem:

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.log in zh_TW locale
2.start gedit
3.ctrl-space to bring up Chewing IM and type 't' 
4.SPACE SPACE to bring up candiate window SPACE many times and then ESCAPE '.' many times
7.observe second last candidate is the candidate of previous look-up.
Actual results:
Such candidate should not be shown.

Expected results:
Lookup table should be cleared between every look-up.

Additional info:

-- Additional comment from on 2006-12-17 23:10 EST --
Used libchewing test suite:

1. in upstream's svn trunk
2. make check
3. ./genkeystroke test.txt
4. then keyin

which shows libchewing works fine.

-- Additional comment from on 2006-12-20 09:01 EST --
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for

-- Additional comment from on 2007-01-02 03:04 EST --
Put this line in SetChoiceInfo() in choice.c:

memset( pci->totalChoiceStr, '\0', sizeof(char) * MAX_CHOICE * MAX_PHRASE_LEN *

before pci->nTotalChoice is zeroized.

-- Additional comment from on 2007-01-02 03:09 EST --
Created an attachment (id=144623)
Patch file of this bug.

Clear previous data before populate ChoiceInfo data structure.

Bugs #220287 #220289 #220290 need separated patches to fix.

-- Additional comment from on 2007-01-02 03:15 EST --
Patched, rebuilt, pending for QA.

-- Additional comment from on 2007-01-02 19:54 EST --

*** This bug has been marked as a duplicate of 218565 ***

Comment 1 Caius Chance 2007-03-09 02:16:42 UTC
Patched and pending for build.

Comment 2 Caius Chance 2007-03-09 02:31:28 UTC
Built and pending for QA.

Comment 3 Jens Petersen 2007-10-02 06:33:56 UTC

Note You need to log in before you can comment on or make changes to this bug.