Commit 5d1d4120 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Fix opening epub files with non ascii names on Windows

epub_open wants an utf8 in Windows

It probably also wants utf8 in Linux, but the qPrintable already gives
us an utf8 in most of the normal Linux locales, so don't touch that

BUGS: 448274
parent feef9002
Pipeline #132331 skipped
......@@ -18,7 +18,11 @@ EpubDocument::EpubDocument(const QString &fileName, const QFont &font)
, padding(20)
, mFont(font)
#ifdef Q_OS_WIN
mEpub = epub_open(fileName.toUtf8(), 2);
mEpub = epub_open(qPrintable(fileName), 2);
setPageSize(QSizeF(600, 800));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment