VM

Display of UTF-8 encoded messages on tty fails for GNU Emacs

Bug #453351 reported by Ulrich Müller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VM
Fix Released
Medium
Ulrich Müller

Bug Description

In GNU Emacs (version 23.1), VM (version 8.0.12) cannot display UTF-8 mime-encoded messages on a tty. After decoding the message with vm-decode-mime-message, VM always shows the [Press RETURN to save to a file] button instead.

This is especially annoying since an increasing number of people send their mail labelled as UTF-8, even if they contain only characters from ASCII or ISO-8859-1.

Investigating the reason, I found that function vm-mime-tty-can-display-mime-charset always returns nil in GNU Emacs (because function console-tty-output-coding-system doesn't exist).

In my opinion things are over-engineered at this point: If the terminal cannot display single UTF-8 characters, there is no harm if a replacement character is displayed for them (and see above, many people are sending ASCII messages labelled as UTF-8, where display is not a problem). OTOH, for users in countries with a non-european writing system it is unlikely that the terminal wouldn't be able to display them.

A patch for vm-mime-charset-internally-displayable-p is attached.

Revision history for this message
Ulrich Müller (ulm) wrote :
Uday Reddy (reddyuday)
Changed in viewmail:
status: New → Fix Committed
Uday Reddy (reddyuday)
Changed in vm:
status: New → Fix Committed
assignee: nobody → Ulrich Müller (ulm)
milestone: none → 8.1.0-beta
Ulrich Müller (ulm)
Changed in vm:
importance: Undecided → Medium
Uday Reddy (reddyuday)
Changed in vm:
status: Fix Committed → Fix Released
Changed in viewmail:
status: Fix Committed → Fix Released
Uday Reddy (reddyuday)
Changed in vm:
milestone: 8.1.0b → 8.1.0
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.