aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert1997-11-07 23:32:50 +0000
committerPaul Eggert1997-11-07 23:32:50 +0000
commit620bca4973b76ecde2cbeedc7ac06afcc712f8f3 (patch)
treea3c6f551488e74963c24e1dcdee0044763504eb7
parent1f97e2fcc20393310b4ec34d7fd205bc4cb1f841 (diff)
downloademacs-620bca4973b76ecde2cbeedc7ac06afcc712f8f3.tar.gz
emacs-620bca4973b76ecde2cbeedc7ac06afcc712f8f3.zip
(ange-ftp-date-regexp): Handle Japanese-format dates.
In Western dates, accept month name and day-of-month in either order.
-rw-r--r--lisp/ange-ftp.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el
index 6ca24f9df87..25469af9d74 100644
--- a/lisp/ange-ftp.el
+++ b/lisp/ange-ftp.el
@@ -2510,9 +2510,16 @@ away in the internal cache."
2510;;;; ------------------------------------------------------------ 2510;;;; ------------------------------------------------------------
2511 2511
2512(defconst ange-ftp-date-regexp 2512(defconst ange-ftp-date-regexp
2513 " [A-Za-z\xa0-\xff][A-Za-z\xa0-\xff][A-Za-z\xa0-\xff] [0-3 ][0-9] " 2513 (let* ((l "[A-Za-z\xa0-\xff]")
2514 (k "[^\x00-\xff]")
2515 (s " ")
2516 (mm "[ 0-1][0-9]")
2517 (dd "[ 0-3][0-9]")
2518 (western (concat "\\(" l l l s dd "\\|" dd s l l l "\\)"))
2519 (japanese (concat mm k s dd k)))
2520 (concat s "\\(" western "\\|" japanese "\\)" s))
2514 "Regular expression to recognize the date in a directory listing. 2521 "Regular expression to recognize the date in a directory listing.
2515This regular expression is designed to recognize month names 2522This regular expression is designed to recognize dates
2516regardless of the language.") 2523regardless of the language.")
2517 2524
2518(defvar ange-ftp-add-file-entry-alist nil 2525(defvar ange-ftp-add-file-entry-alist nil