From b79a846b3704a3d83a985fa5236e590e476d139d Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 22 Jun 2000 14:58:38 +0000 Subject: [PATCH] (make-backup-file-name-1): On DOS/Windows, run the backup file name through convert-standard-filename. --- lisp/files.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/files.el b/lisp/files.el index b46cf4e566e..5015964928f 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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)) -- 2.39.2