7258: Fix a path encoding issue when upgrading the database.
(cherry picked from commit 40cc0e9091bf4c2e1e215a31658c80216c396633)
This commit is contained in:
parent
117fbe2810
commit
8fd8d8b3e9
@ -425,8 +425,6 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
|
||||
(grampsdb_path, db_code) = os.path.split(dirname)
|
||||
dotgramps_path = os.path.dirname(grampsdb_path)
|
||||
zipname = title + time.strftime("_%Y-%m-%d_%H-%M-%S") + ".zip"
|
||||
if sys.version_info[0] < 3:
|
||||
zipname = zipname.encode(glocale.getfilesystemencoding())
|
||||
zippath = os.path.join(dotgramps_path, zipname)
|
||||
myzip = zipfile.ZipFile(zippath, 'w')
|
||||
for filename in os.listdir(dirname):
|
||||
|
Loading…
Reference in New Issue
Block a user