bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug report about addstr with cjk characters


From: WANG WenRui
Subject: bug report about addstr with cjk characters
Date: Sun, 20 Mar 2005 21:15:36 +0800
User-agent: Mutt/1.5.6+20040907i

Hi,

  I found this problem when I was reading a letter from a traditional
  Chinese user with mutt, which is built with ncursesw 5.4. Most
  traditional Chinese characters is unreadable. At last I am sure that
  the problem comes with perhaps a bug in ncurses. 

  My locale is GBK, under which the characters of Traditional Chinese
  is coded between 128 - 160, so, when "addstr" a string of them, they
  are "unctrl"ed in waddch_nosync (base/lib_addch.c) in the first
  place. This behaviour is not expected.

  To see if my idea is right, I removed the 128-160 part of unctrl
  table(by comment out 2 lines in MKunctrl.awk), then rebuild the
  ncurses library. After that, traditional Chinese characters are well
  displayed. The two screenshots are in the attachment.

  So how can this be fixed? Thanks in advance.

Regards
wwr

-- 
Wang WenRui <address@hidden>
PGP-Key-ID: 6ABE5DE0
Registered GNU/Linux User #278717
WWW: http://gnor.net/~roger/

Attachment: ncurses-orig.png
Description: PNG image

Attachment: ncurses-fixed.png
Description: PNG image

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]