# HG changeset patch # User Jason Rumney # Date 1203872151 0 # Node ID d22df5de19cee251c6884c0e2825c02ea1f5774d # Parent 639e83cd103d0a2cc456511da1c439c7cba7f7eb (file-name-invalid-regexp): Fix octal/decimal confusion. diff -r 639e83cd103d -r d22df5de19ce lisp/files.el --- a/lisp/files.el Sun Feb 24 06:09:16 2008 +0000 +++ b/lisp/files.el Sun Feb 24 16:55:51 2008 +0000 @@ -217,12 +217,12 @@ (cond ((and (eq system-type 'ms-dos) (not (msdos-long-file-names))) (concat "^\\([^A-Z[-`a-z]\\|..+\\)?:\\|" ; colon except after drive "[+, ;=|<>\"?*]\\|\\[\\|\\]\\|" ; invalid characters - "[\000-\031]\\|" ; control characters + "[\000-\037]\\|" ; control characters "\\(/\\.\\.?[^/]\\)\\|" ; leading dots "\\(/[^/.]+\\.[^/.]*\\.\\)")) ; more than a single dot ((memq system-type '(ms-dos windows-nt cygwin)) (concat "^\\([^A-Z[-`a-z]\\|..+\\)?:\\|" ; colon except after drive - "[|<>\"?*\000-\031]")) ; invalid characters + "[|<>\"?*\000-\037]")) ; invalid characters (t "[\000]")) "Regexp recognizing file names which aren't allowed by the filesystem.")