Refer to reproduce steps. Reproducible: Always Steps to Reproduce: 1. Name a PDF file to contain Unicode character 'IDEOGRAPHIC SPACE' (U+3000) " " 2. Open the PDF file using Okular Actual Results: File fails to open with "Could not open <file path>" error Expected Results: File opens normally
Created attachment 90708 [details] File that can reproduce bug
Found that the issue is actually on Dolphin instead, Okular just get the wrong file path.
## UPDATE of "Actual results": ### If Unicode character 'IDEOGRAPHIC SPACE' (U+3000) appears at the start of a filename (e.g. " test.pdf") Application get the file path without Unicode character 'IDEOGRAPHIC SPACE' (U+3000) (e.g. "test.pdf" ### If Unicode character 'IDEOGRAPHIC SPACE' (U+3000) appears at the middle of a filename (e.g. "te st.pdf" Application get "te" and "st.pdf" two arguments and fails twice ### If Unicode character 'IDEOGRAPHIC SPACE' (U+3000) appears at the end of a filename (e.g. "test.pdf " Application get the file path without Unicode character 'IDEOGRAPHIC SPACE' (U+3000) (e.g. "test.pdf"
I noticed that this issue is also reproducible with kde-open, but I'm not sure which KDE product it belongs to(In Kubuntu Backports the command is packaged in kde-runtime)
Yeah it's not an okular bug, but i'm working on a fix anyways
http://quickgit.kde.org/?p=kdelibs.git&a=commit&h=5f957ebf94aa5a02815c5bf1e3f59060363efd77