comparison lisp/ange-ftp.el @ 25807:b245d837503b

(ange-ftp-date-regexp): Make it work for LANG=de_DE.iso88591 on HPUX 11.0.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 24 Sep 1999 12:57:17 +0000
parents 15cba2bd779a
children dcafaf809fac
comparison
equal deleted inserted replaced
25806:7ed67319c5aa 25807:b245d837503b
2527 2527
2528 (defconst ange-ftp-date-regexp 2528 (defconst ange-ftp-date-regexp
2529 (let* ((l "\\([A-Za-z]\\|[^\0-\177]\\)") 2529 (let* ((l "\\([A-Za-z]\\|[^\0-\177]\\)")
2530 ;; In some locales, month abbreviations are as short as 2 letters, 2530 ;; In some locales, month abbreviations are as short as 2 letters,
2531 ;; and they can be padded on the right with spaces. 2531 ;; and they can be padded on the right with spaces.
2532 (month (concat l l "+ *")) 2532 ;; weiand: changed: month ends with . or , or .,
2533 ;;old (month (concat l l "+ *"))
2534 (month (concat l l "+[.]?,? *"))
2533 ;; Recognize any non-ASCII character. 2535 ;; Recognize any non-ASCII character.
2534 ;; The purpose is to match a Kanji character. 2536 ;; The purpose is to match a Kanji character.
2535 (k "[^\0-\177]") 2537 (k "[^\0-\177]")
2536 (s " ") 2538 (s " ")
2537 (mm "[ 0-1][0-9]") 2539 (mm "[ 0-1][0-9]")
2538 (dd "[ 0-3][0-9]") 2540 ;; weiand: changed: day ends with .
2541 ;;old (dd "[ 0-3][0-9]")
2542 (dd "[ 0-3][0-9][.]?")
2539 (western (concat "\\(" month s dd "\\|" dd s month "\\)")) 2543 (western (concat "\\(" month s dd "\\|" dd s month "\\)"))
2540 (japanese (concat mm k s dd k))) 2544 (japanese (concat mm k s dd k)))
2541 ;; Require the previous column to end in a digit. 2545 ;; Require the previous column to end in a digit.
2542 ;; This avoids recognizing `1 may 1997' as a date in the line: 2546 ;; This avoids recognizing `1 may 1997' as a date in the line:
2543 ;; -r--r--r-- 1 may 1997 1168 Oct 19 16:49 README 2547 ;; -r--r--r-- 1 may 1997 1168 Oct 19 16:49 README