GNOME Bugzilla – Bug 779844
Check defaults for measurement units
Last modified: 2017-03-15 10:05:35 UTC
E.g. in the printing dialog it defaults to inch - Use LC_MEASUREMENT to get the preferred locale - Save user's choice Since measurement isn't easily gathered and the number of lcoales that are imperial is rather limited, we can hardcode them. cf: bug 736768 and http://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/tools/qlocale_data_p.h?h=dev#n67 Apparently es_PR should be metric (link missing) and Liberia is currently switching. Myanmar seems to be completely different.
Created attachment 347863 [details] [review] printing: Use inch/cm depending on locale settings Signed-off-by: Jens Georg <mail@jensge.org>
Attachment 347863 [details] pushed as eaf7e88 - printing: Use inch/cm depending on locale settings
Unfortunately, this prevents building shotwell on non-Linux OSes because LC_MEASUREMENT is a GNU extension.
Oh for fucks sake. The unix landscape is severly broken.
Created attachment 347942 [details] [review] Check for LC_MEASUREMENT in a more portable way Signed-off-by: Jens Georg <mail@jensge.org>
Attachment 347942 [details] pushed as b11f1b0 - Check for LC_MEASUREMENT in a more portable way
Thank you Jens. For the record this did not only impact *BSD but also Linux distributions not using GNU libc.
True, but I would consider *BSD the more common case of non-GNU libc