Updates to allow for Family Tree names, with non latin characters in Windows, in -l/-L commands.
svn: r15943
This commit is contained in:
parent
e873a264e4
commit
a1cf8a387a
@ -290,7 +290,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:
|
||||
|
@ -155,7 +155,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))
|
||||
|
Loading…
Reference in New Issue
Block a user