Strange characters in terminal

Bug #37178 reported by stefanlew
This bug report is a duplicate of:  Bug #55704: Charset change garbling output. Edit Remove
12
Affects Status Importance Assigned to Milestone
GNOME Terminal
Fix Released
Unknown
gnome-terminal (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Steps to reproduce (Maybe there are other ways of getting this):

1) Open terminal
2) Type 'gpg -e'
3) Enter any Key-ID you want
4) Press Enter twice
    Some strange characters appear
5) Now press Ctrl + c

Sometimes the character encoding remains the same and you can't read anything you write then.

I'm using Ubuntu Dapper with the latest gnome-terminal packages.

Screenshot:
http://lew.funpic.de/zeugs/terminalproblem.png

Revision history for this message
Sebastian Dröge (slomo) wrote :

The strange characters are no bug... you tell gpg to (binary) encrypt the stuff... try using gpg -a -e to ascii encrypt.

but that gnome-terminal doesn't switch the encoding back is a bug i can confirm. this also happens sometimes when you 'cat' random binary files.

Changed in gnome-terminal:
status: Unconfirmed → Confirmed
Revision history for this message
stefanlew (stefan-lew) wrote :

Yes, I knew that it's alright what gpg does. :)
What I meant is that it doesn't switch back to a 'normal' encoding.

Revision history for this message
Carthik Sharma (carthik) wrote :

Thank you for reporting this, but I regret to say that this is not a bug.

Please read http://tldp.org/HOWTO/Text-Terminal-HOWTO-16.html#sent_bin on how to reset your terminal's display after it gets messed up in the process of displaying binary files as in your case. You may also want to use the command tput.

You may not be able to see what you are typing when you type the reset commands, but type it and press enter anyway.

Changed in gnome-terminal:
status: Confirmed → Rejected
Changed in gnome-terminal:
status: Unconfirmed → Confirmed
Changed in gnome-terminal:
status: Confirmed → Fix Released
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.