Bug 224981 - Print options properties dialog does not respect regional measure system
Summary: Print options properties dialog does not respect regional measure system
Status: RESOLVED NOT A BUG
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: print-dialog (show other bugs)
Version: 4.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KDEPrint Devel Mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-31 11:57 UTC by Martin van Es
Modified: 2010-02-01 10:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin van Es 2010-01-31 11:57:56 UTC
Version:            (using KDE 4.3.4)
OS:                Linux
Installed from:    Ubuntu Packages

The Print options properties dialog allways shows dimensions of the selected page in Inches, regardless of the system measurement settting. I live in a country that uses the metric system and like to see my A4 dimensions in cm's.
Comment 1 John Layt 2010-02-01 00:50:20 UTC
The print options actually default to your CUPS Printer setting, i.e. the actual page size you have in the printer, the Regional settings have have nothing to do with it (it does get used in apps like KWord to set the default document page size).  We have seen this before, you need to check you CUPS settings instead to make sure the printer is set to A4 and not Letter.
Comment 2 Christoph Feck 2010-02-01 05:58:28 UTC
The bug report is not about the "size" of the paper, but about the "unit" this size is presented in (Metric vs Imperial).

This would be a KDE bug if KDE systemsettings didn't make sure changes to the LC_MEASUREMENT variable are propagated to applications. I am not sure if it uses the glibc "setlocale" calls to affect the LC_MEASUREMENT system locale for the measuring system. Qt should at least read this value.
Comment 3 Christoph Feck 2010-02-01 06:04:39 UTC
Well, Qt's printing dialog respects http://doc.trolltech.com/4.6/qlocale.html#measurementSystem which in turn uses system locale functions to find the measurement system.
Comment 4 John Layt 2010-02-01 10:48:52 UTC
Ah, sorry, my bad, we get so many of the other report it's become habit :-)

We use the Qt print dialog which is only partially integrated with KDE, it takes it's locale settings from Qt which uses the system locale and not the KDE locale.  The immediate fix here is to obviously fix the system locale settings to be metric (this would be affecting all non-KDE apps you run).

Longer term we do need to look at the whole issue of KDE locale versus system locale, we don't handle it well, and it's an issue on other platforms like Windows and OSX too.  But that would be an issue for a different bug against localization.