Menu

#1 zrm cause minichinput to crash under FreeBSD

open
nobody
None
5
2003-08-10
2003-08-10
hao chen
No

when using ZRM, most of HZ coded by asciis start with a
"v" crashes minichinput. I only found one that does
not: vsgo, which codes for CHINA. This does not happen
under redhat 9

details: ZRM was enabled by first using cin2tab to
obtain a zrm.tab and zrm.tab.phr. cce_hzinput.c was
edited to comment out the Qmode=1 lines. Then .chinput
was edited to include the ZRM module.

This may have something to do with the freebsd patch
since the cvs version won't compile under freebsd:
cd ImmModules; make
cd cce; make
cd turbo; make
cd src; make
for d in IMdkit server client; do ( cd $d; make ); done
make: don't know how to make ../../../config.h. Stop
*** Error code 2

Stop in /usr/home/hao/temp/miniChinput/src.
*** Error code 1

Stop in /usr/home/hao/temp/miniChinput.

versions:
4.8-RELEASE FreeBSD
windowmaker 0.80.2 (same thing under redhat)
XFree86 Version 4.3.0
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: FreeBSD 4.8 i386 [ELF]
Build Date: 23 March 2003
Before reporting problems, check
http://www.XFree86.Org/
to make sure that you have the latest version.
Module Loader present

this is what used under Redhat:
XFree86 Version 4.3.0 (Red Hat Linux release: 4.3.0-2)
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.4.20-3bigmem i686 [ELF]
Build Date: 27 February 2003
Build Host: porky.devel.redhat.com

Discussion

  • Bo Zhang

    Bo Zhang - 2003-08-11

    Logged In: YES
    user_id=738008

    There is a hidden problem for ZRM. Maybe it is the reason which
    crash freebsd.

    The max length of a Chinese phrase is 8, which means, those
    phases in ZRM table which longer than 8 may cause display
    problems. This kind of problems may behave differently in
    freebsd and in linux.

    Solution is delet all phrases in the ZRM table with >8
    length. Use gawk or other tools to do that:
    awk 'length($1)<=20' original_zrm_file >outputfile
    or
    awk 'length($2)<=16' zrm_cin_file >output_cin_file

    This kind of constrains should be added in the cin2tab tool.

     
  • hao chen

    hao chen - 2003-08-12

    Logged In: YES
    user_id=838494

    tested chinese phrases longer than 8 under both linux and
    freebsd using ZRM. Under linux (RH9), the display of Chinese
    phrases is fine even for long phrases. Under freebsd,
    thought, chinput freezes when long phrases are entered. The
    chinput box is still on the screen and can be moved around,
    but not responding to key strokes. This is different from
    the 'v'-key coded chinese phrases are entered, under the
    later condition, the chinput box disappears immediately.
    Thanks for taking a look at this!

     

Log in to post a comment.