From 184eaf21cd05cc5c2cda0b24545936dc45b7731c Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Mon, 19 Jun 2017 09:51:02 -0700 Subject: [PATCH] non-local character in DB name causes crash on Windows Fixes #10095 --- gramps/gui/dbman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gui/dbman.py b/gramps/gui/dbman.py index 37a1ab85f..150314289 100644 --- a/gramps/gui/dbman.py +++ b/gramps/gui/dbman.py @@ -716,7 +716,7 @@ class DbManager(CLIDbManager, ManagedWindow): node = self.model.get_iter(path) filename = self.model.get_value(node, FILE_COL) try: - with open(filename, "r") as name_file: + with open(filename, "r", encoding='utf-8') as name_file: file_name_to_delete = name_file.read() remove_filename(file_name_to_delete) directory = self.data_to_delete[1]