bugGNU Screen - Bugs: bug #20277, unable to re-encode some CJK...


bug #20277: unable to re-encode some CJK punctuation from utf8 to gbk

Submitted by:  None
Submitted on:  Wed 27 Jun 2007 12:20:56 PM UTC  
Votes:  1  
Category: NoneSeverity: 2 - Minor
Priority: 4Status: Confirmed
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: Cur Dev Sources
Fixed Release: NonePlanned Release: 4.1.0
Work Required: 0 - Hours

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


 Spam posted by an anonymous
 Spam posted by an anonymous
 Spam posted by an anonymous
Wed 27 Jun 2007 12:20:56 PM UTC, original submission:

To reproduce this bug:

1) set the locale to utf8 (such as LC_CTYPE=zh_CN.utf8)
2) within GNU screen shell, cat the attached cjk-punc-utf8.txt. you should see that it show CJK punctuations correctly in screen.
3) use C-a :copy to select the result
4) use C-a :writebuf -e gbk cjk-punc-gbk.txt to re-encode it as gbk.
5) open cjk-punc-gbk.txt (using gedit --encoding=gbk or firefox or even hexdump -C), you can see that although the chinese characters are encoded corrently, the quotes punctuations are not (and becomes "?"0x3f)

I have check /usr/share/screen/utf8encodings/19, and the translation table seems correct. So maybe there is something wrong in the code encodings.c?



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #13185:  cjk-punc-utf8.txt added by None (48B - text/plain)
file #13186:  cjk-punc-gbk.txt added by None (38B - text/plain)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by pt0079 (Voted in favor of this item)
  • -unavailable- added by micahcowan (Updated the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 1 encouragement so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 10 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 20 May 2011 03:05:34 PM UTCpt0079Carbon-Copy-=>Added pt0079
    Tue 24 Jun 2008 12:06:32 AM UTCmicahcowanWork RequiredNone=>0 - Hours
    Mon 23 Jun 2008 10:10:12 PM UTCmicahcowanSeverity3 - Normal=>2 - Minor
      Priority5 - Normal=>4
      StatusNeed Investigation=>Confirmed
      ReleaseNone=>Cur Dev Sources
      Planned ReleaseNone=>4.1.0
    Sun 15 Jun 2008 08:23:31 AM UTCmicahcowanStatusNone=>Need Investigation
    Wed 27 Jun 2007 12:20:56 PM UTCNoneAttached File-=>Added cjk-punc-utf8.txt, #13185
      Attached File-=>Added cjk-punc-gbk.txt, #13186

    Back to the top

    Powered by Savane 3.1-cleanup1