]> git.eshelyaron.com Git - emacs.git/commitdiff
Gnus nnimap date search string must use C locale
authorEric Abrahamsen <eric@ericabrahamsen.net>
Mon, 30 Jan 2023 17:55:40 +0000 (09:55 -0800)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Mon, 30 Jan 2023 17:55:40 +0000 (09:55 -0800)
* 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

index 27c71fa6c6a5032aa1a94d2e00c9e0125f4b7284..22c84bc39cffd7f9c54d3b5c65aec07c1a3f8b3d 100644 (file)
@@ -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))