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:  None Severity:  2 - Minor
Priority:  * 4 Status:  Confirmed
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  Cur Dev Sources
Fixed Release:  None Planned Release:  4.1.0
Work Required:  0 - Hours
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

  Spam posted by anonymous
  Spam posted by anonymous
  Spam posted by 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?

Anonymous

 

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

Attach Files:
   
   
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
  • -email is unavailable- added by pt0079 (Voted in favor of this item)
  • -email is unavailable- added by micahcowan (Updated the item)
  •  

    There is 1 vote so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-05-20 pt0079 Carbon-Copy- => Added pt0079
    2008-06-24 micahcowan Work RequiredNone => 0 - Hours
    2008-06-23 micahcowan Severity3 - Normal => 2 - Minor
        Priority5 - Normal => 4
        StatusNeed Investigation => Confirmed
        ReleaseNone => Cur Dev Sources
        Planned ReleaseNone => 4.1.0
    2008-06-15 micahcowan StatusNone => Need Investigation
    2007-06-27 None Attached File- => Added cjk-punc-utf8.txt, #13185
        Attached File- => Added cjk-punc-gbk.txt, #13186

    Back to the top


    Powered by Savane 3.9