Bug 428144

Summary: Okular ignores regional settings for measurement units
Product: [Applications] okular Reporter: Laura David Hurka <laura.stern>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal CC: aacid
Priority: NOR    
Version First Reported In: 1.11.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Okular ignores regional settings for measurement units
works for me screenshot

Description Laura David Hurka 2020-10-23 15:09:51 UTC
Created attachment 132663 [details]
Okular ignores regional settings for measurement units

SUMMARY
DocumentPrivate::localizedSize() queries QLocale::system().measurementSystem(), but although my system is set to metric, it shows the paper size in inches.

STEPS TO REPRODUCE
1. System Settings -> Regional Settings -> Formats -> Measurement Units -> <something metric>
2. Open a document in Okular
3. File->Properties

OBSERVED RESULT
8.5 x 11 in

EXPECTED RESULT
297 x 210 mm

SOFTWARE/OS VERSIONS
KDE Neon 5.20.0
KDE Frameworks Version: 5.75
Qt Version: 5.15
Comment 1 Albert Astals Cid 2020-10-23 20:11:03 UTC
I'm going to say your system is wrongly configured?

Works here (unless the bug is in the "most pages" handling). Can you attach te pdf file you use to double check?
Comment 2 Albert Astals Cid 2020-10-23 20:12:03 UTC
Created attachment 132671 [details]
works for me screenshot
Comment 3 Laura David Hurka 2020-10-23 22:24:41 UTC
Also happens with autotests/data/tocreload.pdf. Then it is probably a problem with my system. LC_... environment variables are correct, as configured in System Settings.
Comment 4 Albert Astals Cid 2020-10-23 23:55:04 UTC
Yeah that one works fine here too, you'll have to investigate why it doesn't work for you i guess :)