comparison lisp/ange-ftp.el @ 20692:8af33d2de7b2

(ange-ftp-date-regexp): Make l pattern match any non-ASCII char.
author Richard M. Stallman <rms@gnu.org>
date Wed, 21 Jan 1998 01:41:23 +0000
parents 0600cc938c98
children e01ca278ca3e
comparison
equal deleted inserted replaced
20691:cf1919e207ef 20692:8af33d2de7b2
2515 ;;;; ------------------------------------------------------------ 2515 ;;;; ------------------------------------------------------------
2516 ;;;; Directory information caching support. 2516 ;;;; Directory information caching support.
2517 ;;;; ------------------------------------------------------------ 2517 ;;;; ------------------------------------------------------------
2518 2518
2519 (defconst ange-ftp-date-regexp 2519 (defconst ange-ftp-date-regexp
2520 (let* ((l "[A-Za-z\xa0-\xff]") 2520 (let* ((l "\\([A-Za-z]\\|[^\0-\177]\\)")
2521 ;; In some locales, month abbreviations are as short as 2 letters, 2521 ;; In some locales, month abbreviations are as short as 2 letters,
2522 ;; and they can be padded on the right with spaces. 2522 ;; and they can be padded on the right with spaces.
2523 (month (concat l l "+ *")) 2523 (month (concat l l "+ *"))
2524 ;; Recognize any non-ISO-8859 character. 2524 ;; Recognize any non-ASCII character.
2525 ;; The purpose is to match a Kanji character. 2525 ;; The purpose is to match a Kanji character.
2526 (k "[^\x00-\xff]") 2526 (k "[^\0-\177]")
2527 (s " ") 2527 (s " ")
2528 (mm "[ 0-1][0-9]") 2528 (mm "[ 0-1][0-9]")
2529 (dd "[ 0-3][0-9]") 2529 (dd "[ 0-3][0-9]")
2530 (western (concat "\\(" month s dd "\\|" dd s month "\\)")) 2530 (western (concat "\\(" month s dd "\\|" dd s month "\\)"))
2531 (japanese (concat mm k s dd k))) 2531 (japanese (concat mm k s dd k)))