Bug 422500 - Okular does not open djvu files with non-ASCII names on Windows
Summary: Okular does not open djvu files with non-ASCII names on Windows
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.9.2
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Christoph Cullmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-05 19:46 UTC by aldwulf
Modified: 2020-06-19 10:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aldwulf 2020-06-05 19:46:08 UTC
STEPS TO REPRODUCE
1. Get a djvu file with any kind of non-ASCII characters in the filename
2. Try to open it in Okular, from Windows Explorer or with File->Open
3. Get the error message

OBSERVED RESULT
"Could not open file:///D:/ebooki/Японский за 4 месяца (Химия и жизнь 1977).djvu"

EXPECTED RESULT
Properly opening and rendering the file.


SOFTWARE/OS VERSIONS
Windows: Windows 10 1909
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.0

ADDITIONAL INFORMATION
PDF and FB2 files are opened correctly, this only seems to affect DjVu.
Comment 1 Albert Astals Cid 2020-06-07 10:19:59 UTC
works on linux
Comment 2 Christoph Cullmann 2020-06-07 11:17:35 UTC
I can take a look at that.
I assume the ddjvu_document_create_by_filename isn't working like intended on Windows.
Comment 3 Christoph Cullmann 2020-06-07 11:27:18 UTC
Git commit bb53266430aee995288fca92ec4cc5376fd4c2e3 by Christoph Cullmann.
Committed on 07/06/2020 at 11:26.
Pushed by cullmann into branch 'bug/422500'.

allow unicode filenames to work on Windows, too

M  +3    -3    generators/djvu/kdjvu.cpp

https://invent.kde.org/graphics/okular/commit/bb53266430aee995288fca92ec4cc5376fd4c2e3
Comment 4 Christoph Cullmann 2020-06-07 11:28:50 UTC
https://invent.kde.org/graphics/okular/-/merge_requests/191

Still needs to be merged.
Comment 5 Christoph Cullmann 2020-06-07 22:31:39 UTC
Git commit 3ad9fc7028bba05f6d9fbee7f5e3c18bcdd42264 by Christoph Cullmann.
Committed on 07/06/2020 at 11:52.
Pushed by aacid into branch 'release/20.04'.

allow unicode filenames to work on Windows, too

M  +3    -3    generators/djvu/kdjvu.cpp

https://invent.kde.org/graphics/okular/commit/3ad9fc7028bba05f6d9fbee7f5e3c18bcdd42264
Comment 6 Yuri Chornoivan 2020-06-19 10:33:56 UTC
*** Bug 423212 has been marked as a duplicate of this bug. ***