Bug 427596 - Missing characters with "--find" parameter
Summary: Missing characters with "--find" parameter
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.10.3
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-12 14:58 UTC by jeb
Modified: 2020-10-25 16:50 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.11.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jeb 2020-10-12 14:58:01 UTC
SUMMARY
When starting Okular from command line with "--find" parameter, if there is a diacritic character as "--find" input, the result search will show a missing character

STEPS TO REPRODUCE
1. okular SomeFile.pdf --find "éxãmplë"

OBSERVED RESULT
"?x?mpl?" is the Find input

EXPECTED RESULT
"example" is the Find input

SOFTWARE/OS VERSIONS
OS: ArchLinux
Linux: 5.4.70-1-lts 
Qt Version: 5.15.1-3 

ADDITIONAL INFORMATION
I use Okular in synergy with Recoll, so it's important that the Find input to be preserved.
Comment 1 Yuri Chornoivan 2020-10-12 18:21:40 UTC
Confirmed for all Unicode (non-ASCII) strings and git/master.
Comment 2 Bug Janitor Service 2020-10-24 23:13:01 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/301
Comment 3 Albert Astals Cid 2020-10-25 16:49:50 UTC
Git commit af526819937e31e525718ed93fbb65905e80d26b by Albert Astals Cid.
Committed on 24/10/2020 at 23:11.
Pushed by ngraham into branch 'release/20.08'.

Support more than latin1 chars on --find command line option

M  +2    -2    shell/shellutils.cpp

https://invent.kde.org/graphics/okular/commit/af526819937e31e525718ed93fbb65905e80d26b