From 5f79535574feae29c9b441d19d11a4c6859571de Mon Sep 17 00:00:00 2001 From: djcb Date: Wed, 8 Nov 2017 21:26:00 +0200 Subject: [PATCH] proc: ensure query string is utf-8 ensure that the query string is utf-8 before passing it to the backend. --- mu4e/mu4e-proc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mu4e/mu4e-proc.el b/mu4e/mu4e-proc.el index 8e1494dc..c85440da 100644 --- a/mu4e/mu4e-proc.el +++ b/mu4e/mu4e-proc.el @@ -339,7 +339,7 @@ or an error." (concat "cmd:find query:%s threads:%s sortfield:%s reverse:%s maxnum:%d " "skip-dups:%s include-related:%s") - (base64-encode-string query t) + (base64-encode-string (encode-coding-string query 'utf-8 t) t) (if threads "true" "false") ;; sortfield is e.g. ':subject'; this removes the ':' (if (null sortfield) "nil" (substring (symbol-name sortfield) 1))