changeset 29856:f157067ee950

(make-backup-file-name-1): On DOS/Windows, run the backup file name through convert-standard-filename.
author Eli Zaretskii <eliz@gnu.org>
date Thu, 22 Jun 2000 14:58:38 +0000
parents 4a37c3f4cb29
children f1c1c620a093
files lisp/files.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Thu Jun 22 14:57:45 2000 +0000
+++ b/lisp/files.el	Thu Jun 22 14:58:38 2000 +0000
@@ -2297,6 +2297,9 @@
 	      ;; and replace the leading "x:" with "/drive_x".
 	      (or (file-name-absolute-p file)
 		  (setq file (expand-file-name file))) ; make defaults explicit
+	      ;; Replace any invalid file-name characters (for the
+	      ;; case of backing up remote files).
+	      (setq file (convert-standard-filename file))
 	      (setq dir-sep-string (char-to-string directory-sep-char))
 	      (or (eq directory-sep-char ?/)
 		  (subst-char-in-string ?/ ?\\ file))