This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin 1.7: Empty/white-space output when display Chinese characters in GBK charset encoding?


The only unexpected thing is the empty output of GBK-encoded chinese
characters when LANG is xxxx.UTF-8.

I mean it should display something visible(malformed characters, squares or
whatever visible characters) regardless the LANG setting.

echo -e "Chinese characters in GBK encoding: [\xba\xba\xd7\xd6]  -- Output
will be [    ] in Cygwin 1.7"
echo -e "Chinese characters in UTF-8 encoding: [\xe6\xb1\x89\xe5\xad\x97]"

Cygwin windows is a DOS prompt window, and this window has a code page, it's
code page 936(GBK) in Simplified Chinese Windows OS. But Cygwin 1.7 is
*simulating* UTF-8 environment, will this difference cause the empty output
issue?


Corinna Vinschen-2 wrote:
> 
> On Dec 14 04:07, LiuYan ?????? wrote:
>> 
>> Hi Corinna:
>>   I didn't set LANG environment variable, and the result of 'export'
>> command
>> is:
>> ...
>> declare -x LANG="C.UTF-8"
>> ...
>> 
>>   And, if I change LANG to zh_CN.GBK, the cc-gbk.txt file can be
>> displayed
>> correctly (act same behaviour like Cygwin 1.5).
> 
> So everything's as expected.  Good to know.
> 
> 
> Corinna
> 
> -- 
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Project Co-Leader          cygwin AT cygwin DOT com
> Red Hat
> 
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Cygwin-1.7%3A-Empty-white-space-output-when-display-Chinese-characters-in-GBK-charset-encoding--tp26774467p26777598.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]