From 2708e59e80d7fc12b3e9b9785fd29760fe45c197 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 19 Jan 1998 20:29:31 +0000 Subject: [PATCH] (dired-move-to-filename-regexp): Make l pattern match any non-ASCII char. --- lisp/dired.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/dired.el b/lisp/dired.el index b69bd24f517..6c37eccfb9e 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -1351,13 +1351,14 @@ DIR must be a directory name, not a file name." ;;; Functions for finding the file name in a dired buffer line. (defvar dired-move-to-filename-regexp - (let* ((l "[A-Za-z\xa0-\xff]") + (let* ((l "\\([A-Za-z]\\|[^\0-\177]\\)") ;; In some locales, month abbreviations are as short as 2 letters, ;; and they can be padded on the right with spaces. (month (concat l l "+ *")) - ;; Recognize any non-ISO-8859 character. + ;; Recognize any non-ASCII character. ;; The purpose is to match a Kanji character. - (k "[^\x00-\xff]") + (k "[^\0-\177]") + ;; (k "[^\x00-\x7f\x80-\xff]") (s " ") (yyyy "[0-9][0-9][0-9][0-9]") (mm "[ 0-1][0-9]") -- 2.39.2