mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 06:43:41 +02:00
Fix #5983 (Problem with localized versions with non-ascii characters in default paths)
This commit is contained in:
parent
ce736fa6ea
commit
dbcda9a0d8
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ def __init__(self, library_path, row_factory=False):
|
|||
self.dbpath = os.path.join(library_path, 'metadata.db')
|
||||
self.dbpath = os.environ.get('CALIBRE_OVERRIDE_DATABASE_PATH',
|
||||
self.dbpath)
|
||||
if isinstance(self.dbpath, unicode):
|
||||
if isinstance(self.dbpath, unicode) and not iswindows:
|
||||
self.dbpath = self.dbpath.encode(filesystem_encoding)
|
||||
|
||||
self.connect()
|
||||
|
|
|
|||
Loading…
Reference in a new issue