From 989f06b0b519c48fb44c2e43211b6511debe0e3e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 27 May 2020 13:47:26 +0530 Subject: [PATCH] Windows: Fix an error when changing title/author for books in a library whose name contains characters not encodeable in the current code page --- src/calibre/utils/filenames.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/filenames.py b/src/calibre/utils/filenames.py index 2be2f9234d..7b322b26c9 100644 --- a/src/calibre/utils/filenames.py +++ b/src/calibre/utils/filenames.py @@ -468,7 +468,7 @@ class WindowsAtomicFolderMove(object): def delete_originals(self): import win32file for path in self.handle_map: - win32file.DeleteFile(path) + win32file.DeleteFileW(path) self.close_handles()