It won't work on other platforms and just leads to ugly platform-specific #ifdef massacres.
#Firefox printer settings fit width iso#
The nl_langinfo(PAPER_HEIGHT) / nl_langinfo(PAPER_WIDTH) was a draft proposal (ISO technical report 14652) that only glibc implemented but that never made it into the POSIX standard or any other ISO standard.
![firefox printer settings fit width firefox printer settings fit width](https://www.watchingthenet.com/wp-content/uploads/image/ffprint1.png)
The alternatives simply don't wash: The /etc/papersize mechanism is a complete non-starter, as it is a global setting that you cannot easily override for individual users or processes. My original proposal above, from, namely to decide on preferred units of measurement and standard paper size by searching for country codes in the LC_* environment variables (exactly as suggested in the above piece of code) is IMHO still the most advisable solution today! Please just try it, before thinking up alternatives. That differs so dramatically from international standards. The default distribution shouldn't force users to use a locale setting (en_US) "en" differs from "en-US" in that itĪpplies ISO standards for default settings instead of US customary values.Įn-US: US Letter, inches, mm/dd/yy, am/pm
#Firefox printer settings fit width download#
To the default download version of Mozilla. So they will still get their special national 8.5x11" paper format configuredĬorrectly, without disrupting Mozilla printing worldwide, as it happens at theĪnother idea is to include in addition to "en-US" also a language setting "en" Set (often also with LC_COLLATE=POSIX to prevent ls changing its sorting order), Printf("Paper: %s\nUnits: %s\n", paper, units) Īmerican users should (and with most distributions typically have) LANG=en_US * LC_PAPER and LC_MEASUREMENT were introduced Under Linux as in the following example code: Theĭefault settings for printer paper and unit of measurement should be determined North America by looking at the standard POSIX locale environment variables. Suggestion: Mozilla for Linux can trivially determine whether it was invoked in No changing to A4 should be necessary ever.
![firefox printer settings fit width firefox printer settings fit width](https://www.ghacks.net/wp-content/uploads/2022/02/firefox-search-engines-removal.png)
It is currently not at all obvious for a highly computer literate userĪ non-North American user should never ever have to worry about the paper size. Millimeters, not inches, but the default margin settings in the print menu use Similarly, the vast majority of users worldwide are used to think in Printers (namely practically *every* printer outside the USA and Canada) is fed This is extremely disruptive for most users. Setting en-US only and sets the printing page size at each invocation back to The default download binary of Mozilla 1.0rc2 for Linux comes with language