unable to re-encode some CJK punctuation from utf8 to gbk

Bug #123370 reported by poppyer
2
Affects Status Importance Assigned to Milestone
screen
Unknown
Unknown
screen (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: screen

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.
(http://poppyer.110mb.com/cjk-punc-utf8.txt)
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?

Revision history for this message
Micah Cowan (micahcowan) wrote :
Revision history for this message
xteejx (xteejx) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Changed in screen (Ubuntu):
status: New → Incomplete
Revision history for this message
poppyer (gaofeng) wrote :

Yes, it is still here. and i think Cowan is right, it is a upstream bug.

Revision history for this message
xteejx (xteejx) wrote :

I can reproduce this bug as well. Marking Confirmed and setting to Low importance - not a core application. I see this has already been reported upstream, but as yet, has not been dealt with, perhaps it needs a bump? Thank you.

Changed in screen (Ubuntu):
importance: Undecided → Low
status: Incomplete → Confirmed
Revision history for this message
xteejx (xteejx) wrote :

I have just checked this in Maverick and the bug is the same. The gnu bugtracker seems to be down, but I have linked it in anyway. Set Triaged, Low.

Changed in screen (Ubuntu):
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.