]> git.eshelyaron.com Git - emacs.git/commitdiff
(make-backup-file-name-1): On DOS/Windows, run the
authorEli Zaretskii <eliz@gnu.org>
Thu, 22 Jun 2000 14:58:38 +0000 (14:58 +0000)
committerEli Zaretskii <eliz@gnu.org>
Thu, 22 Jun 2000 14:58:38 +0000 (14:58 +0000)
backup file name through convert-standard-filename.

lisp/files.el

index b46cf4e566e6ca2adf474befa7dd6a083757809a..5015964928ffc2ad96da6b479ab8840d949d3ff8 100644 (file)
@@ -2297,6 +2297,9 @@ doesn't exist, it is created."
              ;; 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))