Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[VM] error when sending mail with non-ASCII characters

2 views
Skip to first unread message

Rainer J.H. Brandt

unread,
Apr 18, 2016, 11:21:38 AM4/18/16
to viewma...@nongnu.org
Hi,

with 8.2.0b, I get this error when trying to send a mail containing
non-ASCII characters:

vm-mime-encode-text-part: Wrong type argument: char-or-string-p, nil

I've looked at the latest NEWS file, but didn't find anything related.
I'd be grateful for any advice.

Thanks,
Rainer Brandt

Rainer J.H. Brandt

unread,
Apr 20, 2016, 4:36:55 PM4/20/16
to viewma...@nongnu.org
Here are some more details about the error:
The Emacs version is 24.5.1.

The error occurs when I enter C-c C-c in the mail composition buffer.
The mail body is just one word contining two german umlaut characters
which are part of iso-8859-1.

The error message is:
vm-mime-encode-text-part: Wrong type argument: char-or-string-p, nil

The debugger backtrace output is:
Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
vm-mime-charset-to-coding(nil)
vm-mime-encode-text-part(228 235 t)
vm-mime-encode-composition-internal(nil)
vm-mime-encode-composition()
vm-mail-send()
vm-mail-send-and-exit(nil)
call-interactively(vm-mail-send-and-exit nil nil)
command-execute(vm-mail-send-and-exit)

So, as I understand it, vm-mime-charset-to-coding expects a char-or-string,
but got nil.

In vm-mime.el, in the definition of vm-mime-encode-text-part, I see this:

(setq charset (vm-determine-proper-charset (point-min) (point-max)))
(when (vm-emacs-mule-p)
(let ((coding-system
(vm-mime-charset-to-coding charset)))

So it seems that charset is nil, which means that vm-determine-proper-charset
failed. After looking looking at its definition, I can't see why.

I have vm-mime-8bit-composition-charset set to "iso-8859-1"
and vm-coding-system-priorities set to ("iso-8859-1" "iso-8859-15" "utf-8").

Does anyone see what's going wrong?
Thanks,
Rainer

0 new messages