Fix #5983 (Problem with localized versions with non-ascii characters in default paths)

This commit is contained in:
Kovid Goyal 2010-06-26 08:51:31 -06:00
parent ae1446a91d
commit d96204698a

View File

@ -56,6 +56,8 @@ def init_qt(args):
def get_default_library_path(): def get_default_library_path():
fname = _('Calibre Library') fname = _('Calibre Library')
if iswindows:
fname = 'Calibre Library'
if isinstance(fname, unicode): if isinstance(fname, unicode):
try: try:
fname = fname.encode(filesystem_encoding) fname = fname.encode(filesystem_encoding)