From 6aef60a421688f0422c8715686b06f9c80fccbe1 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Thu, 30 Sep 2010 14:25:25 +0000 Subject: [PATCH] Updates to allow for Family Tree names, with non latin characters in Windows, in -l/-L commands. svn: r15942 --- src/cli/arghandler.py | 2 +- src/cli/clidbman.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/arghandler.py b/src/cli/arghandler.py index c57174585..8525e1e90 100644 --- a/src/cli/arghandler.py +++ b/src/cli/arghandler.py @@ -287,7 +287,7 @@ class ArgHandler(object): if self.list: print 'List of known family trees in your database path\n' for name, dirname in self.dbman.family_tree_list(): - print dirname, ', with name ', name + print dirname, ', with name ', name.encode(sys.getfilesystemencoding()) sys.exit(0) if self.list_more: diff --git a/src/cli/clidbman.py b/src/cli/clidbman.py index 64125dcf6..4627925ef 100644 --- a/src/cli/clidbman.py +++ b/src/cli/clidbman.py @@ -156,7 +156,7 @@ class CLIDbManager(object): else: retval["Locked?"] = "no" retval["DB version"] = version - retval["Family tree"] = name + retval["Family tree"] = name.encode(sys.getfilesystemencoding()) retval["Path"] = dirpath retval["Last accessed"] = time.strftime('%x %X', time.localtime(tval))