mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 17:24:20 +02:00
Fix handling of non-ascii character in HOME on windows.
This commit is contained in:
parent
066bfb116b
commit
96b1500891
1 changed files with 2 additions and 2 deletions
|
|
@ -957,9 +957,9 @@ def read_settings(self):
|
|||
geometry = settings.value('main window geometry', QVariant()).toByteArray()
|
||||
self.restoreGeometry(geometry)
|
||||
settings.endGroup()
|
||||
dbpath = os.path.join(os.path.expanduser(u'~'), u'library1.db').encode('utf-8')
|
||||
dbpath = os.path.join(os.path.expanduser('~'), 'library1.db').decode(sys.getfilesystemencoding())
|
||||
self.database_path = qstring_to_unicode(settings.value("database path",
|
||||
QVariant(QString.fromUtf8(dbpath))).toString())
|
||||
QVariant(QString.fromUtf8(dbpath.encode('utf-8')))).toString())
|
||||
set_sidebar_directories(None)
|
||||
set_filename_pat(qstring_to_unicode(settings.value('filename pattern', QVariant(get_filename_pat())).toString()))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue