Created attachment 868990 [details] the demo src Description of problem:the function newtGridWrappedWindow doesn't surpport chinese characters Version-Release number of selected component (if applicable):newt 0.52.17
Created attachment 868991 [details] the screen snapshot
In what encoding is the example C file? It doesn't seem to be utf-8.
It's encode in cp936(gb2312),and I run it in pts(LANG=zh_cn.utf8,SecureCRT).Just like the snapshot pic,if the title is chinese string(newtGridWrappedWindow),the tile will be blank,but the body text is correct. Soon I try the same code with zhcon(http://sourceforge.net/projects/zhcon/) in tty,and all seems to be fine,like the snapshot2. Is that I use the function in a wrong way? (In reply to Miroslav Lichvar from comment #2) > In what encoding is the example C file? It doesn't seem to be utf-8.
I changed my pts encode to LANG="zh_CN.GB18030",and It sloved. Sorry to trouble you,and thanks for your works.
Created attachment 869746 [details] Snapshot2
Created attachment 869748 [details] snapshot 3