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 Jun 27 12:20:56 2007  
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 MarkupRich 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 Jun 27 12:20:56 2007, 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?

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

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 May 20 15:05:34 2011pt0079Carbon-Copy-=>Added pt0079
    Tue Jun 24 00:06:32 2008micahcowanWork RequiredNone=>0 - Hours
    Mon Jun 23 22:10:12 2008micahcowanSeverity3 - Normal=>2 - Minor
      Priority5 - Normal=>4
      StatusNeed Investigation=>Confirmed
      ReleaseNone=>Cur Dev Sources
      Planned ReleaseNone=>4.1.0
    Sun Jun 15 08:23:31 2008micahcowanStatusNone=>Need Investigation
    Wed Jun 27 12:20:56 2007NoneAttached 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