VM

Filename encoding for external viewer inconsistent

Bug #538736 reported by Uday Reddy
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VM
Triaged
Medium
Ulrich Müller

Bug Description

From Malte Plath:

after finally configuring some external viewers for VM in NTEmacs,
I noticed that the encoding used for saving the temporary file and
that for calling the program to display it are not consistent. (Well,
it may be an inconsistency in Windows...)

The filename of the saved file was effectively windows-1252 (default
in German Windows XP) as you can see in the explorer window in the
screen shot. Apparently the viewer (IrfanView [i_view32.exe] in this
case) was called with a UTF-8 string, though.

The content description in the original mail was: | Content-Type: image/jpeg;
name*=ISO-8859-1''Verpuffende%20Fernw%E4rme.jpg | Content-Disposition:
attachment; filename*=ISO-8859-1''Verpuffende%20Fernw%E4rme.jpg |
Content-Transfer-Encoding: base64 The text part of the original mail was
encoded as UTF-8.

Attachment: Screenshot of image file in Explorer and error message of
viewer program.

Tags: 7.19 mime
Revision history for this message
Uday Reddy (reddyuday) wrote :

Email bug-report in the archive:

https://lists.launchpad.net/vm/msg00658.html

Changed in vm:
assignee: nobody → Ulrich Müller (ulm)
Revision history for this message
Ulrich Müller (ulm) wrote :

Can you provide us with the exact filename that was passed to the viewer program?

From the screenshot attached to the e-mail message I would conclude that it is _not_ encoded in utf-8: The byte sequence for "ä" in utf-8 is C3 A4, while in windows-1252 it is E4. So if filename was encoded as utf-8, then the "ä" would not be displayed at all.

Changed in vm:
status: New → Incomplete
Revision history for this message
Malcolm (m-c-plath) wrote :

Hi Ulrich,

I have now captured the argument, here it is in hex:
39 2D 56 65 72 70 75 66 66 65 6E 64 65 20 46 65 72 6E 77 81 E4 72 6D 65 2E 6A 70 67
(Just the filename!)
The 'ä' is encoded as 81 E4.

Hope that helps,
Malcolm

Uday Reddy (reddyuday)
Changed in vm:
status: Incomplete → Triaged
Uday Reddy (reddyuday)
Changed in vm:
importance: Undecided → Medium
Uday Reddy (reddyuday)
tags: added: 7.19 mime
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.