From 328bb21cee6ecf8b83610deddde1a0288ca26d59 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Tue, 1 Apr 2014 17:37:04 -0700 Subject: [PATCH] Win32: Fix crash in gramps -L when the database path includes a non-ascii character. --- gramps/cli/clidbman.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/gramps/cli/clidbman.py b/gramps/cli/clidbman.py index 5696ac711..edc7abe2e 100644 --- a/gramps/cli/clidbman.py +++ b/gramps/cli/clidbman.py @@ -168,8 +168,6 @@ class CLIDbManager(object): flags = db.DB_CREATE | db.DB_PRIVATE |\ db.DB_INIT_MPOOL |\ db.DB_INIT_LOG | db.DB_INIT_TXN - if (isinstance(dirpath, UNITYPE) and win() and sys.version_info[0] < 3): - dirpath = dirpath.encode(sys.getfilesystemencoding()) try: env.open(dirpath, flags) except Exception as msg: