Discussion:
[VM] vm-url-decode-buffer and UTF-8
Göran Uddeborg
2016-07-31 21:52:11 UTC
Permalink
I'm occasionally calling

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

from scripts. It works fine for simple mailto:***@domain 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
characters.

Has anyone else been hit by this or something similar? And, in
particular, has anyone any idea how to fix the problem?
Uday Reddy
2016-11-15 22:18:40 UTC
Permalink
Hi Göran, is this now taken care of by the bug fix you have filed on
Launchpad?

Cheers,
Uday
Post by Göran Uddeborg
I'm occasionally calling
emacsclient ... vm-mail-to-mailto-url ...
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
characters.
Has anyone else been hit by this or something similar? And, in
particular, has anyone any idea how to fix the problem?
Loading...