Bug 1071251 - libnewt doesn't surpport chinese characters
Summary: libnewt doesn't surpport chinese characters
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: newt
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-28 11:17 UTC by Jobcrazy
Modified: 2014-03-03 03:00 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-03-03 02:58:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
the demo src (1.34 KB, text/plain)
2014-02-28 11:17 UTC, Jobcrazy
no flags Details
the screen snapshot (22.21 KB, image/jpeg)
2014-02-28 11:18 UTC, Jobcrazy
no flags Details
Snapshot2 (16.40 KB, image/jpeg)
2014-03-03 02:59 UTC, Jobcrazy
no flags Details
snapshot 3 (50.57 KB, image/jpeg)
2014-03-03 03:00 UTC, Jobcrazy
no flags Details

Description Jobcrazy 2014-02-28 11:17:09 UTC
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

Comment 1 Jobcrazy 2014-02-28 11:18:20 UTC
Created attachment 868991 [details]
the screen snapshot

Comment 2 Miroslav Lichvar 2014-02-28 11:56:25 UTC
In what encoding is the example C file? It doesn't seem to be utf-8.

Comment 3 Jobcrazy 2014-03-03 02:55:12 UTC
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.

Comment 4 Jobcrazy 2014-03-03 02:58:55 UTC
I changed my pts encode to LANG="zh_CN.GB18030",and It sloved.

Sorry to trouble you,and thanks for your works.

Comment 5 Jobcrazy 2014-03-03 02:59:36 UTC
Created attachment 869746 [details]
Snapshot2

Comment 6 Jobcrazy 2014-03-03 03:00:53 UTC
Created attachment 869748 [details]
snapshot 3


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