Windows: Fix an error when changing title/author for books in a library whose name contains characters not encodeable in the current code page

This commit is contained in:
Kovid Goyal 2020-05-27 13:47:26 +05:30
parent c849bfb635
commit 989f06b0b5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -468,7 +468,7 @@ class WindowsAtomicFolderMove(object):
def delete_originals(self): def delete_originals(self):
import win32file import win32file
for path in self.handle_map: for path in self.handle_map:
win32file.DeleteFile(path) win32file.DeleteFileW(path)
self.close_handles() self.close_handles()