Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 773553 - app-text/mupdf-1.18.0-r3: can't use diacritics in search bar with USE=-opengl
Summary: app-text/mupdf-1.18.0-r3: can't use diacritics in search bar with USE=-opengl
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Philipp Rösner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-01 10:41 UTC by sphakka
Modified: 2023-01-09 16:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info (emerge-info.mupdf-1.18.0-r3.txt,7.35 KB, text/plain)
2021-03-01 10:41 UTC, sphakka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sphakka 2021-03-01 10:41:41 UTC
Created attachment 688869 [details]
emerge info

I'm unable to use diacritics in mupdf's search bar, i.e., only plain ASCII characters are available. 

1. Open a PDF file in a language with diacritics
2. Start searching with '/'
3. Type some diacritics in the search bar, like à, û, etc.

Actual Result:

  No diacritic shown in the search bar.

Expected result:

  Diacritics like à, û, appear in the search bar.

Also, compose doesn't work in the search bar.

My keyboard is on:

  "xkb_layout" "ch"
  "xkb_variant" "fr"

And:

$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME=en_DK.UTF-8
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT=en_DK.UTF-8
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
Comment 1 Jonas Stein gentoo-dev 2021-03-01 22:34:26 UTC
It works for me in app-text/mupdf-1.18.0-r3
I do not think that the problem is the locale

$ locale
LANG=en_GB.utf8
LC_CTYPE="en_GB.utf8"
LC_NUMERIC="en_GB.utf8"
LC_TIME=en_DK.utf8
LC_COLLATE="en_GB.utf8"
LC_MONETARY="en_GB.utf8"
LC_MESSAGES=en_GB.utf8
LC_PAPER="en_GB.utf8"
LC_NAME="en_GB.utf8"
LC_ADDRESS="en_GB.utf8"
LC_TELEPHONE="en_GB.utf8"
LC_MEASUREMENT="en_GB.utf8"
LC_IDENTIFICATION="en_GB.utf8"
LC_ALL=

Could you recompile mupdf and all its dependencies?
Comment 2 sphakka 2021-03-08 11:29:11 UTC
I found the reason, my mupdf was built without opengl support. Enabling it, provides a different search bar where diacritics are accepted. 

So, the workaround is USE=opengl. I guess that's handled by freeglut.

I'd say the bug is still valid -- didn't find any upstream info.
Comment 3 Philipp Rösner 2021-12-30 23:28:20 UTC
I can confirm the issue with mupdf-1.19.0 and mupdf-1.18.0-r4. 

The issue was reported multiple times on different sources already:
https://bugs.ghostscript.com/show_bug.cgi?id=693724
https://github.com/mjg/mupdf.spec/issues/6

The "fix" is using mupdf-gl (in our case enabling the opengl USE-flag).

My approach would be to inform the user about this problem if they emerge without the opengl USE-flag. I don't see a more elegant solution, since forcing the use of mupdf-gl and rendering the opengl USE-flag useless seems not good.