aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Abrahamsen2023-01-30 09:55:40 -0800
committerEric Abrahamsen2023-01-30 09:55:40 -0800
commitcdc8f7c28ebfd8423854aabeeed9d245a2c15b91 (patch)
tree3509982f7edf06d5e650643e879b2b90df056ef8
parentc53952164fe54fee41343fd4008f610f7a284d26 (diff)
downloademacs-cdc8f7c28ebfd8423854aabeeed9d245a2c15b91.tar.gz
emacs-cdc8f7c28ebfd8423854aabeeed9d245a2c15b91.zip
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.
-rw-r--r--lisp/gnus/gnus-search.el7
1 files 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."
1330 (1- nyear) 1330 (1- nyear)
1331 nyear)) 1331 nyear))
1332 (setq dmonth 1)))) 1332 (setq dmonth 1))))
1333 (format-time-string 1333 (with-locale-environment "C"
1334 "%e-%b-%Y" 1334 (format-time-string
1335 (encode-time 0 0 0 dday dmonth dyear)))) 1335 "%e-%b-%Y"
1336 (encode-time 0 0 0 dday dmonth dyear)))))
1336 1337
1337(cl-defmethod gnus-search-imap-handle-string ((engine gnus-search-imap) 1338(cl-defmethod gnus-search-imap-handle-string ((engine gnus-search-imap)
1338 (str string)) 1339 (str string))