SUMMARY Default print format set in systemsettings is overridden by most/all KDE programs (KATE, Okular, etc.). STEPS TO REPRODUCE 1. Print preview. OBSERVED RESULT If you have USA settings (as we always left default in KDE Neon) programs (KATE, Okular) change the set default print format USA letter to 2L, which I don't know what it is and we don't have that size paper. If I have British English dialect but all the rest defaults were left on USA settings including USA letter (as in Slackware) it may be overridden to 2L or A4 (international/EU/UK letter). EXPECTED RESULT Make programs use the default print format. SOFTWARE/OS VERSIONS UNIX/Linux/KDE Plasma: KDE Neon 22.04 5.27.1, Slackware64 15+current KDE Plasma Version: 5.27.1 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 ADDITIONAL INFORMATION Used to not happen but started earlier this or last year.
All my KDE apps use USA letter without an issue. Can you write specific detailed steps to reproduce? Including setting the locales, languages, formats etc. for your system. Thanks!
This happens on a KDE Neon PC we didn't set any locale, language, format settings--just left default since installation. The only step is as stated: try to print (preview) from any KDE program such as KATE, Okular, etc., which (though systemsettings says is set to USA letter) are all set on 2L.
Can you supply the following? - The output of running `env | grep LANG` in a terminal window - The contents of ~/.config/plasma-localerc - The contents of /etc/locale.conf
(In reply to Nate Graham from comment #3) > Can you supply the following? > > - The output of running `env | grep LANG` in a terminal window > - The contents of ~/.config/plasma-localerc > - The contents of /etc/locale.conf u@Hilltop-Heaven:~$ env|grep LANG LANGUAGE=en_US LANG=en_US.UTF-8 #/etc/locale.conf [Formats] LANG=en_US.UTF-8 [Translations] LANGUAGE=en_US u@Hilltop-Heaven:~$ cat /etc/locale.conf LANG=en_US.UTF-8 LC_ADDRESS=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8 LC_MEASUREMENT=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_NAME=en_US.UTF-8 LC_NUMERIC=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 LC_TIME=en_US.UTF-8 Another thing I noticed in KATE is it lists page margins in millimetres, though Okular lists it in inches... but both are outside printable area (2.96mm or 0.12"). The above is for KDE Neon; of course on my Slackware PC I added British English the above is different, but I'm unsure this actually happened on there... just when I used the network printer I thought it might've. We installed printer drivers because they seem to work better than the so-called 'driverless', and are unable to delete that one.
Ok, everything on your system looks set up properly for US default print settings. If you're seeing these settings not be respected in the Print Preview window specifically, then that's a Qt bug, since the Print Preview window is 100% Qt code that we don't have control over. The same would be true of the print dialog itself. So I would encourage you to report this issue to the Qt folks at https://bugreports.qt.io/. Once you do, feel free to paste the URL of the bug report in the URL field of this one. Thanks!
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2740
Git commit 7b7e70b2262285dbfc294cc6617f4c0787a61d5c by Nate Graham. Committed on 13/03/2023 at 22:28. Pushed by hanyoung into branch 'master'. kcms/region_language: set LC_PAPER, not LC_PAGE The correct name of this environment variable/format is "LC_PAPER." We look for it by the correct name in kcmregionandlang.cpp, but not in regionandlangsettingsbase.kcfg, causing a mismatch. Related: bug 467269 FIXED-IN: 5.27.3 M +1 -1 kcms/region_language/regionandlangsettingsbase.kcfg https://invent.kde.org/plasma/plasma-workspace/commit/7b7e70b2262285dbfc294cc6617f4c0787a61d5c
Git commit 27de75798ee19fc1629c99cc13ee08754e0c47bd by Han Young, on behalf of Nate Graham. Committed on 13/03/2023 at 23:24. Pushed by hanyoung into branch 'Plasma/5.27'. kcms/region_language: set LC_PAPER, not LC_PAGE The correct name of this environment variable/format is "LC_PAPER." We look for it by the correct name in kcmregionandlang.cpp, but not in regionandlangsettingsbase.kcfg, causing a mismatch. Related: bug 467269 FIXED-IN: 5.27.3 (cherry picked from commit 7b7e70b2262285dbfc294cc6617f4c0787a61d5c) M +1 -1 kcms/region_language/regionandlangsettingsbase.kcfg https://invent.kde.org/plasma/plasma-workspace/commit/27de75798ee19fc1629c99cc13ee08754e0c47bd