changeset 80193:d22df5de19ce

(file-name-invalid-regexp): Fix octal/decimal confusion.
author Jason Rumney <jasonr@gnu.org>
date Sun, 24 Feb 2008 16:55:51 +0000
parents 639e83cd103d
children 00f28ef41efd
files lisp/files.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.")