From cdc8f7c28ebfd8423854aabeeed9d245a2c15b91 Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen Date: Mon, 30 Jan 2023 09:55:40 -0800 Subject: [PATCH] Gnus nnimap date search string must use C locale * lisp/gnus/gnus-search.el (gnus-search-imap-handle-date): The %b needs to be the English month name for IMAP search. --- lisp/gnus/gnus-search.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/gnus/gnus-search.el b/lisp/gnus/gnus-search.el index 27c71fa6c6a..22c84bc39cf 100644 --- a/lisp/gnus/gnus-search.el +++ b/lisp/gnus/gnus-search.el @@ -1330,9 +1330,10 @@ elements are present." (1- nyear) nyear)) (setq dmonth 1)))) - (format-time-string - "%e-%b-%Y" - (encode-time 0 0 0 dday dmonth dyear)))) + (with-locale-environment "C" + (format-time-string + "%e-%b-%Y" + (encode-time 0 0 0 dday dmonth dyear))))) (cl-defmethod gnus-search-imap-handle-string ((engine gnus-search-imap) (str string)) -- 2.39.5