From 05dc6333c38905ce2d1411f06004f7c050532afe Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 5 May 2020 22:14:53 +0300 Subject: [PATCH] mu4e-format: decode strings to utf8 Thanks to thierryvolpiatto Fixes #1676. --- mu4e/mu4e-utils.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mu4e/mu4e-utils.el b/mu4e/mu4e-utils.el index 79ae8dde..8da105b8 100644 --- a/mu4e/mu4e-utils.el +++ b/mu4e/mu4e-utils.el @@ -182,7 +182,7 @@ see its docstring)." (mu4e-error "unsupported type for mu4e-attachment-dir" ))))) (if dir (expand-file-name dir) - (mu4e-error (mu4e-error "mu4e-attachment-dir evaluates to nil"))))) + (mu4e-error "mu4e-attachment-dir evaluates to nil")))) ;;; Maildir (1/2) @@ -216,7 +216,12 @@ an absolute path." "Create [mu4e]-prefixed string based on format FRM and ARGS." (concat "[" (propertize "mu4e" 'face 'mu4e-title-face) "] " - (apply 'format frm args))) + (apply 'format frm + (mapcar (lambda (x) + (if (stringp x) + (decode-coding-string x 'utf-8) + x)) + args)))) (defun mu4e-message (frm &rest args) "Like `message', but prefixed with mu4e.