Default page size for printing is letter

Bug #10910 reported by Tollef Fog Heen
454
This bug affects 74 people
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Fix Released
Medium
firefox (Baltix)
Confirmed
Undecided
Unassigned
firefox (Ubuntu)
Triaged
Medium
Unassigned
Declined for Intrepid by Steve Langasek
Declined for Jaunty by Steve Langasek
thunderbird (Ubuntu)
Triaged
Medium
Unassigned
Declined for Intrepid by Steve Langasek
Declined for Jaunty by Steve Langasek

Bug Description

(Default warty install, dist-upgraded to hoary, language chosen is Norwegian)

about:config reports that print.postscript.paper_size is letter, which is wrong
for Norway, it should be A4. It should probably look at LC_PAPER or /etc/papersize

Revision history for this message
In , Bstell (bstell) wrote :

changed title from:

  Default printer settings set to US Letter and inches

to:

  Printer settings should default to appropiate values for the user

So what works these days?

  /etc/papersize

  LC_PAPER

  nl_langinfo(PAPER_HEIGHT) / nl_langinfo(PAPER_WIDTH)

  others?

Revision history for this message
In , Tetsuroy (tetsuroy) wrote :

assign to katakai-san.
please have a look. Thanks

Revision history for this message
In , Bugzilla-kl (bugzilla-kl) wrote :

what's the status of this?

Revision history for this message
In , Masaki (masaki-katakai) wrote :

I've started working on this.

Revision history for this message
Tollef Fog Heen (tfheen) wrote :

(Default warty install, dist-upgraded to hoary, language chosen is Norwegian)

about:config reports that print.postscript.paper_size is letter, which is wrong
for Norway, it should be A4. It should probably look at LC_PAPER or /etc/papersize

Revision history for this message
Thom May (thombot) wrote :
Revision history for this message
David Farning (dfarning) wrote :

still open upstream as an enhancement request.

Revision history for this message
Matthew Wright (matthew-wright2) wrote :

This effects all users outside of the United States. (The other

This has been open upstream for Years.. This is the #4 usability issue with Desktop linux in our organisation. (Which has 30 terminals, 10 permanents and 50 or so rotating people who use our system. For end users setting the paper size is a pain in the arse.

I emphasise it is very important to get this bug,, it is also

Revision history for this message
Matthew Wright (matthew-wright2) wrote :

Redhat bugs are
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=186735 FC5
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=133658 Devel

This is confirmed and really easy to confirm / reproduce, just set your locale to the UK and AU, then goto File Print in Firefox, also after you have set your print setting to A4 repeat process, it is back on Letter

The Firefox dialogue will never keep the A4 setting.

Revision history for this message
Alexandre Otto Strube (surak) wrote :

This is really a problem outside US. Perhaps the severity/priority should be changed.

Changed in firefox:
status: Unconfirmed → Confirmed
Changed in firefox:
status: Unconfirmed → Confirmed
Ian Jackson (ijackson)
Changed in firefox:
assignee: ijackson → nobody
Revision history for this message
In , Etienne Goyer (etienne-goyer-outlands) wrote :

This issue also affect Thunderbird 1.5.0.7 (tested on Ubuntu 6.10).

Revision history for this message
Etienne Goyer (etienne-goyer-outlands) wrote :

Changed upstream bug # to one that have been assigned and is being worked on.

Changed in firefox:
status: Unknown → In Progress
David Farning (dfarning)
Changed in firefox:
assignee: nobody → mozillabugs
Revision history for this message
In , Fabián Rodríguez (magicfab) wrote :

This bug seems to be the same as https://bugzilla.mozilla.org/show_bug.cgi?id=144625 .

Will be marking that one as duplicate.

Revision history for this message
Fabián Rodríguez (magicfab) wrote :

Upstream is considered an "enhancement", and open since 2002.

Revision history for this message
Fabián Rodríguez (magicfab) wrote :

I've asked #144625 upstream to be marked as duplicate of #147419 upstream. This bug is also affecting Thunderbird 1.5.0.7 in Ubuntu 6.10 (Edgy)

David Farning (dfarning)
Changed in firefox:
assignee: mozillateam → mozilla-bugs
Revision history for this message
Fabián Rodríguez (magicfab) wrote :

This has also been escalated to our distro team (Canonical Support).

Revision history for this message
In , antgel (antgel) wrote :

Masaki, are you still working on this?

Revision history for this message
In , Fabián Rodríguez (magicfab) wrote :

Masaki, can you provide any feedback on this ? A month has gone by. Thank you.

Revision history for this message
In , Masaki (masaki-katakai) wrote :

I'm very sorry for the late response. I will not be able to work on this area. Anyone can take this?

Changed in firefox:
status: Confirmed → In Progress
Alexander Sack (asac)
Changed in firefox:
status: Unconfirmed → Rejected
Revision history for this message
In , Anthony DeRobertis (derobert) wrote :

*** Bug 144625 has been marked as a duplicate of this bug. ***

Revision history for this message
In , gmud (gmud) wrote :

Since Masaki can't work on this, shouldn't the bug be marked as NEW then?

Revision history for this message
In , Chl (chl) wrote :

This bug is really annoying. Is anyone interested in solving it? Is there a usual way to support (financially) someone?

Changed in firefox:
status: In Progress → Confirmed
Revision history for this message
goto (gotolaunchpad) wrote :

This seems to affect Firefox on Windows Vista also. A fix seems to be to manually edit the about:config, which for me required changing the print.*.print_paper_size value from 3539049 to 3276858.

Revision history for this message
Paul Russell (paul-russell) wrote :

Actually I found the same problem. However I tried the about:config, print.*.print_paper_size change to 3276858 but it didn't seem to work for me. What I did change that worked was changing the value of print.*.print_paper_data from 1 to 9.

Revision history for this message
Fabián Rodríguez (magicfab) wrote :

Papersize settings are at least remembered in 2.0.0.6/gutsy. Do you see that as well?

Revision history for this message
In , Pacho Ramos (pacho) wrote :

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; es-ES; rv:1.8.1.11) Gecko/20071205 Firefox/2.0.0.11
Build Identifier:

Seems that Firefox/Seamonkey printing dialog doesn't take care of /etc/papersize setting and always defaults to letter instead of "a4" (/etc/papersize is provided by libpaper)

Thanks a lot for fixing this

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

Revision history for this message
viktara (vik-propco) wrote :

I can confirm paper size setting are remembered in 2.0.0.6/gutsy provided you do actually print a document.

If you click cancel on the print dialog box it will NOT remember the setting.

Revision history for this message
Fabián Rodríguez (magicfab) wrote :

viktara, right, one needs to print something for this workaround to be effective. Thank you.

Revision history for this message
Fabián Rodríguez (magicfab) wrote :

Forgot to mention this also works in 6.06.2 LTS.

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 10910] Re: Default page size for printing is letter

On Fri, Feb 22, 2008 at 05:12:32AM -0000, Fabián Rodríguez wrote:
> Forgot to mention this also works in 6.06.2 LTS.
>

 affects ubuntu/firefox
 status fixreleased

thanks for the info. closing this issue.

 - Alexander

Changed in firefox:
status: In Progress → Fix Released
Revision history for this message
In , Matti-mversen (matti-mversen) wrote :

*** Bug 430064 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Matti-mversen (matti-mversen) wrote :

confirming based on the dupe

Revision history for this message
In , Fernand Pajot (fernandp) wrote :

Mandriva's 2008.1 firefox 2.0.0.13 doesn't has this bug though and I don't remember having it on other distributions using firefox 2.x.

Revision history for this message
In , Pacho Ramos (pacho) wrote :

It is still valid with 2.0.0.14, hopefully fixed in firefox3 because of gnome-printing usage

(Mandriva applies a lot of patches to their firefox, maybe one of them fixes this)

Revision history for this message
In , Fernand Pajot (fernandp) wrote :

No it's not fixed in Firefox 3, that's why I reported the bug ;). See the duplicate.

Revision history for this message
Matthias Andree (matthias-andree) wrote :

Print failures persist in Hardy Heron :-(

Please fix ASAP, this is a LTS distro with Long-Term PITA for printing

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 10910] Re: Default page size for printing is letter

On Fri, May 02, 2008 at 11:13:10AM -0000, Matthias Andree wrote:
> Print failures persist in Hardy Heron :-(
>
> Please fix ASAP, this is a LTS distro with Long-Term PITA for printing
>

this bug is rather old and probably tracks and issue already resolved
at some point. Please open a new bug or search for other existing
duplicates in launchpad first.

 - Alexander

Revision history for this message
Matthias Andree (matthias-andree) wrote :

What kind of support nonsense is this? The problem is that firefox again defaults to US Letter, which is exactly what this bug is about, the upstream wasn't fixed <https://bugzilla.mozilla.org/show_bug.cgi?id=147419> so why file new bugs for old stories? Polluting bugs.launchpad is certainly not helping developers.

Revision history for this message
Tero Karvinen (karvinen+launchpad) wrote :

Changed status to fix released->confirmed, because Matthias Andree reports it's still broken in Hardy. If you can test that it's fixed in Hardy, please change back.

This is a serious bug: not only that it prevents printing, but in many cases it jams the printer and requires someone to physically go to the printer or log in with administrative priviledges.

Changed in firefox:
status: Fix Released → Confirmed
Revision history for this message
era (era) wrote :

Alexander: I get the impression that you misunderstood comment #15, which I interpret to mean that the *workaround* works in 6.06. Can you confirm this, just to set the record straight?

Alexander Sack (asac)
Changed in firefox:
assignee: mozilla-bugs → nobody
status: Confirmed → Triaged
Changed in firefox:
status: Confirmed → In Progress
Micah Gersten (micahg)
Changed in firefox (Ubuntu):
status: New → Invalid
affects: firefox-3.0 (Ubuntu) → firefox-3.5 (Ubuntu)
Changed in firefox-3.5 (Ubuntu):
status: Triaged → Incomplete
affects: firefox-3.5 (Ubuntu) → firefox-3.0 (Ubuntu)
Changed in firefox-3.0 (Ubuntu):
status: Incomplete → Triaged
Changed in firefox-3.5 (Ubuntu):
status: New → Triaged
Changed in firefox (Ubuntu):
status: Invalid → Confirmed
Changed in firefox:
importance: Unknown → Medium
Changed in ubufox (Ubuntu):
status: New → Confirmed
110 comments hidden view all 190 comments
Revision history for this message
Paul Crawford (psc-sat) wrote :

This bug is STILL not fixed in 10.04 with Firefox 14.0.1
Is this related to bug #627648 that applies to both Firefox and Thunderbird and why, after 8 YEARS is this still an issue for the majority of the world that use A4 paper and not US Letter?
Seriously, what is happening here?

Micah Gersten (micahg)
no longer affects: firefox-3.0 (Ubuntu)
no longer affects: firefox-3.5 (Ubuntu)
Revision history for this message
Micah Gersten (micahg) wrote :

Cleaned up the bug tasks a little, we don't need 2 upstream tasks since this is in the Core. firefox-3.5 and firefox-3.0 don't exist in supported stable Desktop releases. Ubufox isn't affected either as it's doing nothing wrong.

no longer affects: ubufox (Ubuntu)
Changed in thunderbird (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Changed in firefox (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
no longer affects: thunderbird
Revision history for this message
Paul Crawford (psc-sat) wrote :

Just to add to this bug discussion my observation in bug #627648 that the about:support setting for user-modified parameters do not appear to change in any when you alter the global paper size, which may be related to why this is continually reset on version 'upgrades'. This trait makes the lack of correct system-based defaults even worse as every user's account has to be manually reset following any security fixes, etc, for Firefox and Thunderbird.

Revision history for this message
Roland Orre (roland-orre) wrote :

I noticed that when I set
print.postscript.paper.size = iso_a4
instead of A4, in about:config
I do no longer get the warning message from Gtk
(I noticed that there were a few other settings that used iso_a4)
I did work though but I don't like warning messages.

Changed in firefox (Baltix):
status: Invalid → Confirmed
Revision history for this message
John John Doe (johnjohndoe) wrote :

I cannot manage to find the right setting for Firefox 17.0.1 on Ubuntu 12.04.
Can someone please provide an advise on how to configure A4 as the default page size?

Revision history for this message
Andre (ajx) wrote :

Hello John, I'm sorry. This is not a support forum. Please head over to http://askUbuntu.com/ where you will get quickly a reply. You can login to AskUbuntu with your Launchpad/Ubuntu-Account by choosing OpenID.

Revision history for this message
Matthias Andree (matthias-andree) wrote :

Am 18.12.2012 04:55, schrieb Andre:
> Hello John, I'm sorry. This is not a support forum. Please head over to
> http://askUbuntu.com/ where you will get quickly a reply. You can login
> to AskUbuntu with your Launchpad/Ubuntu-Account by choosing OpenID.
>

"Cannot find" entails "is not listed", and may be a related bug. Do not
bluntly brush these off, but handle properly.

Revision history for this message
rpr nospam (rpr-nospam) wrote :
Revision history for this message
In , Berend De Schouwer (berend-de-schouwer) wrote :

In firefox 20.0, print to file defaults to letter. If I change this to A4, the PDF file on disk is still marked as size Letter. So various PDF readers assume it's Letter.

Revision history for this message
In , Berend De Schouwer (berend-de-schouwer) wrote :

in print-to-file I first have to select a different paper size (any different paper size), then re-select A4, then I get A4 paper size in the .pdf. Otherwise I get letter.

printer_Print_to_File.print_paper_name=iso_a4

Revision history for this message
Bruce Kingsbury (zcat-u) wrote :

I like everything else about firefox except for this one infuriating bug.

This bug was first filed in 2004. It's now 2013. I've just upgraded to Firefox 24.0 on Debian and my default paper size has, once again as it does every upgrade, reverted to the US_Letter papersize.

I live in the other 96% of the world that uses A4 paper, so every time I try to print from Firefox I get an error message on my printer.

OpenOffice and Libreoffice get the paper size right. GIMP gets the paper size right. Inkscape gets the papersize right. Abiword gets the paper size right. Gedit gets the paper size right. Tuxpaint gets the papersize right. EVERY OTHER program I use under any distro of Linux manages to correctly determine that I use A4 paper and doesn't give me any problems.

But not Firefox.

Firefox defaults to US_Letter. Even though my printer is set for A4. Even though my language is en_NZ. Even when I've manually changed ALL of the defaults back to A4 under about:config it still bloody-mindedly sets everything back to US-Letter every singe time there's some minor point-update of Firefox.

Firefox is the ONLY program that does this.

And it's been doing it far too long.

Pleas, for the love of Free Software, FIX THIS BUG.

Revision history for this message
Bruce Kingsbury (zcat-u) wrote :

So continuing my previous rant;

I have just followed the procedure of

1) Download Firefox-24.0 English(UK) version for Linux
2) Download Firefox-24.0 English(UK) version for Linux again and compare just to be sure I didn't accidentally get the wrong one
3) Check environment and observe LANG=en_NZ.UTF-8
4) Check printer settings and see that default paper size is A4
5) rm -rf ~/.mozilla so there are no previous settings.
6) As root, rm -rf /opt/firefox and extract the one I just downloaded
7) as normal user again, run firefox and get the usual first-run page
8) about:config and search for paper_size

Observe that paper size is letter.

There is nothing on my computer that suggests it should be using letter, and as mentioned earlier no other program that I ever print from has EVER decided that the paper size should be letter. Only firefox gets this wrong. It's been getting it wrong now for about ten years.

Revision history for this message
In , Bruce Kingsbury (zcat-u) wrote :

I have just followed the procedure of;

1) Download Firefox-24.0 English(UK) version for Linux
2) Download Firefox-24.0 English(UK) version for Linux again and compare just to be sure I didn't accidentally get the wrong one
3) Check environment and observe LANG=en_NZ.UTF-8
4) Check printer settings and see that default paper size is A4
5) rm -rf ~/.mozilla so there are no previous settings.
6) As root, rm -rf /opt/firefox and extract the one I just downloaded
7) as normal user again, run firefox and get the usual first-run page
8) about:config and search for paper_size

Observe that paper size is letter.

There is nothing on my computer that suggests it should be using letter, and no other program that I ever print from has EVER decided that the paper size should be letter. Only firefox gets this wrong. It's been getting it wrong now for well over ten years.

I like everything else about firefox except for this one infuriating bug.

This bug was first filed in 2002. It's now 2013. I've just upgraded to Firefox 24.0 on all my machines and my default paper size has, once again as it does every upgrade, reverted to the US_Letter papersize.

I live in the other 96% of the world that uses A4 paper, so every time I try to print from Firefox I get an error message on my printer.

OpenOffice and Libreoffice get the paper size right. GIMP gets the paper size right. Inkscape gets the papersize right. Abiword gets the paper size right. Gedit gets the paper size right. Tuxpaint gets the papersize right. EVERY OTHER program I use under any distro of Linux manages to correctly determine that I use A4 paper and doesn't give me any problems.

But not Firefox.

Firefox defaults to US_Letter. Even though my printer is set for A4. Even though my language is en_NZ. Even when I've manually changed ALL of the defaults back to A4 under about:config it still bloody-mindedly sets everything back to US-Letter every singe time there's some minor point-update of Firefox.

Firefox is the ONLY program that does this.

And it's been doing it far too long.

Pleas, for the love of Free Software, FIX THIS BUG.

Revision history for this message
In , Jaccoud (jaccoud) wrote :

I have submitted a duplicate and have been following this bug for years, saddly seeing no resolution at all. Some stuff must be made clear:

Paper size names are surely locale dependent ("Letter" in the US is "Carta" in Brazil), but the default value for the paper size is NOT. It is determined by the host operating system, i.e., the software component which is responsible for handling the printers and their queues. Any default value provided by Firefox, anywhere, is WRONG. Please find every line setting a default value and get rid of it.

I have not noticed this bug acting for quite a while in Windows and Mac OS, so this is clearly a platform independent feature which which was corrected the wrong way, probably in the platform dependent module. The linux module should get this values from cups, and that's it -- why on earth does 'letter' keeps popping up? Where does this value come from? Please get rid of it, I already abandoned Firefox for any printing in my Linux boxes, and I am on the verge of abandoning it whatsoever, just because of this stupid little bug which persists for more than a decade.

I cannot even find a place to buy letter-sixed paper if I needed to. It doesn't exist in Brazil, although some weird legal sizes are still used in some time-shifted places like notary offices and advocacy firms.

Weather websites are smart enough to tell I'm im Rio de Janeiro, but show temperatures in Fahrenheit and wind speed in miles/h. My new GPS app knows I'm im Brazil but shows distandes in miles and yards. My music editor (made in Europe!) gets the paper size right, but still defaults margins in inches, and worst: when I change them, they get rounded to the nearest inch fraction, so I keep getting 2.98 mm instead of 3.00 ! How an European software chooses to use inches inside it is beyond my understanding. This must have something to do with (very old) development frameworks.

Firefox should not be this dumb, and specially not in a internationally freely distributed OS like Linux.

Please do something. Let us get rid of all US medieval defaults, they're like a curse.

Revision history for this message
In , Teemu Leisti (teemu-leisti) wrote :

I completely agree with the last two commenters. This bug is getting beyond ridiculous. It is an embarrassment for Mozilla. Just fix it, already.

Revision history for this message
In , Dev-oskar (dev-oskar) wrote :

Well the whole situation is very complex, the other platform code is more or less broken too.
Bug 629500 sums the whole situation quite good and looks like a welcome refactor of the whole code base, maybe it will land in the next years? Feels like gecko/firefox printing is stuck in IE6 age...

Revision history for this message
In , higuita (higuita) wrote :

I'm also annoyed that every firefox i run have the letter as default page size... and of course, one only discovers this after trying to print and nothing show up on the printer.

If in the past, print was little used, with the PDFjs, people start to print a lot more from firefox, making this issue more important.

If this can not be "fixed", at very least remove the default, leave it BLANK... on first printing, ask what paper size one wants... is not as friendly as a default, but having a broken default, trying to print and getting nothing is even worst. Most people will never know that the problem is the wrong paper size and don't understand why they don't have any printout.

Revision history for this message
In , Dev-oskar (dev-oskar) wrote :

https://bugzilla.mozilla.org/show_bug.cgi?id=947125

Actually, while the windows version works better, it is screwed too, specially on unusually paper sizes and margins.

The main problem with "letter" is, that the gtk code part can't understand ps paper names, and the ps paper names doesn't understand iso_a4.

The right solution would be to drop the whole thing and query printer and paper names directly via ipp or use only gtk code and throw the old cups lib and ps based query solution.

Considering the other bug #629500 is stuck as well.
My solution will be my own private inhouse addon as can no longer wait for a solution.
The win32 version works more or less, except CSS2 Margins are still broken.
For the linux version I plan to to use a ipp based solution or directly accessing cups via js-ctypes.

Accessing CUPS via socket and ipp protocol, query paper sizes, create a postscript file and send it directly should be a more future proof technology. Technical that should work on OSX and if you have the right url with any ipp aware network printer, but that isn't my goal.

8 comments hidden view all 190 comments
Revision history for this message
In , Karlt (karlt) wrote :

This bug is not half as bad now that the fix for bug 446041 provides that
print.print_paper_* prefs (once they exist) will override
print.postscript.paper_size.

The print.print_paper_* prefs will record the previous setting, but this will
only be different from print.postscript.paper_size if the value is been
changed in the page setup.

There is also much code here that can be removed and so make the use of
different prefs somewhat less confusing.

Revision history for this message
In , Karlt (karlt) wrote :

Created attachment 8620681
remove ununsed nsIPrintSettings::printCommand and print_command prefs

These was used only to write to and read from each other.

Revision history for this message
In , Karlt (karlt) wrote :

Created attachment 8620682
use GTK default paper size and orientation

In the nsPrintSettingsGTK constructor, gtk_paper_size_new(nullptr) gets the
system default paper size from the locale and gtk_page_setup_new() sets
default orientation to portrait.

These are subsequently overridden by prefs if any have been saved from
a previous nsPrintSettingsGTK.

Revision history for this message
In , Karlt (karlt) wrote :

Created attachment 8620683
remove print(|.<modulename>)(|.printer_<printername>).filename pref reading code

There are no default pref values, and even if some have been set, the value
is subsequently overridden by the print.print_to_filename pref, which exists
if saved from a previous nsPrintSettingsGTK.

Revision history for this message
In , Karlt (karlt) wrote :

Created attachment 8620684
remove meaningless GetPrintMethod()

Revision history for this message
In , Karlt (karlt) wrote :

Created attachment 8620685
part 5: remove ununsed plexName colorspace resolutionName and downloadFonts

This was only used to write to and read from otherwise unused preferences.

Revision history for this message
In , Roc-ocallahan (roc-ocallahan) wrote :

Comment on attachment 8620682
use GTK default paper size and orientation

Review of attachment 8620682:
-----------------------------------------------------------------

So with this patch, do we still remember the user's paper size in some way? How?

Revision history for this message
In , Karlt (karlt) wrote :

Comment on attachment 8620682
use GTK default paper size and orientation

(In reply to Robert O'Callahan (:roc) (Mozilla Corporation) from comment #89)
> So with this patch, do we still remember the user's paper size in some way?

Yes. The code removed here was not reading user's prefs. Those prefs were never saved.

> How?

(In reply to Karl Tomlinson (ni?:karlt) from comment #85)
> These are subsequently overridden by prefs if any have been saved from
> a previous nsPrintSettingsGTK.

This happens in nsPrintOptions from InitPrintSettingsFromPrefs(), called after
InitPrintSettingsFromPrinter().

https://hg.mozilla.org/mozilla-central/annotate/9ebd530c5843/widget/nsPrintOptionsImpl.cpp#l542
https://hg.mozilla.org/mozilla-central/annotate/9ebd530c5843/dom/base/nsGlobalWindow.cpp#l7011

Revision history for this message
In , Karlt (karlt) wrote :

Created attachment 8621437
part 4: remove meaningless GetPrintMethod() v1.1

Also removed a now-unused nsresult and a repeated argument sanity check.

Revision history for this message
In , Roc-ocallahan (roc-ocallahan) wrote :

Comment on attachment 8621437
part 4: remove meaningless GetPrintMethod() v1.1

Review of attachment 8621437:
-----------------------------------------------------------------

Delicious!

Revision history for this message
In , Pulsebot (pulsebot) wrote :
Revision history for this message
In , Ryanvm (ryanvm) wrote :
Changed in firefox:
status: In Progress → Fix Released
Revision history for this message
In , Byian (byian) wrote :

This appears to have broken printer settings on Windows with e10s enabled (bug 1176141).

Revision history for this message
In , Byian (byian) wrote :

(In reply to Brian Birtles (:birtles) from comment #95)
> This appears to have broken printer settings on Windows with e10s enabled
> (bug 1176141).

My bad, this bug has nothing to do with it.

20 comments hidden view all 190 comments
Revision history for this message
Teemu Leisti (teemu-leisti) wrote :

Fix released? Amazing! Will we see it in Ubuntu 15.10?

Revision history for this message
John Drinkwater (johndrinkwater) wrote :

Should land for Firefox 41, which will be a few weeks (22nd Sept) before 15.10 arrives.

Revision history for this message
Elias Aarnio (elias-aarnio) wrote :

The fix does not work as per now.

My suggestion is: erase all countries 1) using letter size paper and/or 2) using imperial measurements instead of metric.

I'm fed up with the "bliss" of not knowing anything about life outside one's own country.

Revision history for this message
rpr nospam (rpr-nospam) wrote :

I've tested Firefox 41 on Ubuntu 15.04 and I'd say that the issue has been fixed. Here is the test procedure:

(1) Check your Regional Formats in System Settings > Language > Language Support > Regional Formats. Let's say this option is set to "English (United Kingdom)" (if you change it, the change takes effect the next time you log in). That option will change the environment variables for various locale categories including LC_PAPER.
(2) Start Firefox with default user settings. You can do it by running "firefox -P" and creating a new user profile.
(3) Try to print (Ctrl+P). On the Page Setup tab you get "Paper size: A4".

I get this result even without step (2).

If the Regional Formats are set to "English (United States)" then you get "Paper Size: US Letter".

You can also test this without changing Regional Formats: in the Terminal Window run the following commands and check the paper size as in step (3) above:

LC_PAPER=en_GB.UTF-8 firefox

LC_PAPER=en_US.UTF-8 firefox

Revision history for this message
ebrjvd (jos-van-dyck) wrote :

Paper size shall be independent of language or locale.
It should be a parameter that can be set by the user, depending on stationery that is being used in the printer.
There may be a default size, depending on geographical region (normal paper size sold in that country), but NOT on language.

Revision history for this message
Elias Aarnio (elias-aarnio) wrote :

The bug still exists in Thunderbird (not sure about Firefox). Every time Thunderbird is updated the paper size is changed to letter even if the user uses locale for which the right size is A4.

Check out this: http://ubuntuforums.org/showthread.php?t=889088&p=12423297#post12423297

Could it be the case that when Thunderbird update is installed, update process does not check at all what is 1) in the locale or 2) what value Thunderbird config variable print.postscript.paper_size has? This would explain the nasty behaviour.

Revision history for this message
Elias Aarnio (elias-aarnio) wrote :

I tested my hypothesis above. I made a Live USB stick with space to save settings and updates. I used ubuntu-14.04.2-desktop-amd64.iso. After changing languge settings to finnish and installing all localization files I opened Firefox for the first time. Paper size in firefox was letter, not A4 as it is supposed to be.

Then I changed the variable print.postscript.paper_size to iso_a4 in Firefox config, closed and reopened Firefox and checked if the paper size change persisted. It did, also it was still A4.

After that I did sudo apt-get update followed by sudo apt-get upgrade. After that and restarting Firefox the paper size was still A4.

I think this proves my guess was wrong.

There is something else that changes the paper size _back_ to letter size from A4 because this happens to me quite often.

Revision history for this message
rpr nospam (rpr-nospam) wrote :

Elias, in you comment #175 you didn't wrote which version of Firefox you had when you run it for the first time.

Also, have you noticed that if you make a change in
Regional Formats in System Settings > Language > Language Support > Regional Formats
the change takes effect the next time you log in (see my comment #172).
Then check what you get when you run the locale command in the terminal window.

Displaying first 40 and last 40 comments. View all 190 comments or add a comment.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.