[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[VM] vm-url-decode-buffer and UTF-8

From: Göran Uddeborg
Subject: [VM] vm-url-decode-buffer and UTF-8
Date: Sun, 31 Jul 2016 23:52:11 +0200

I'm occasionally calling

    emacsclient ... vm-mail-to-mailto-url ...

from scripts.  It works fine for simple mailto:address@hidden URL:s.  But
if the URL also includes some non-ASCII, e.g. in a subject= argument,
then this string gets mangled.  More exactly, the UTF-8 encoded
character in the string gets treated as multiple single characters.

If I understand things correctly, this boils down to
vm-url-decode-buffer doing the decoding in that way.  It looks for one
%XX escape, and does insert-char on the decoded value.  That makes a
UTF-8 sequence consisting of more than one byte become several

Has anyone else been hit by this or something similar?  And, in
particular, has anyone any idea how to fix the problem?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]