found 236227 24.7.0esr-1~deb7u1
user cont...@itopie.ch
usertags 236227 + itopie.ch-installation
user i...@codha.ch
usertags 236227 + codha.ch-installation
thanks

Hi there!

On Thu, 28 Mar 2013 10:37:27 +0100, Mgr. Peter Tuharsky wrote:
> Bug still occurs with Debian Wheezy.

Still true, but it seems that something has changed: if you have a
printer installed which defaults to A4, when you configure such a
printer in the File -> Page Setup window the page size is A4.  This
"new" behavior is also present in 31.0~a2+20140523004002-1, which
however lacks File -> Page Setup (you can still get it within the print
preview window).

Given that we are deploying Debian workstations for multiple users,
configuring each user manually is a no-op.  The corresponding Ubuntu bug
was a good reading to look for a system-wide solution, especially
comment #143:

  <https://bugs.launchpad.net/firefox/+bug/10910>

After a series of tests, I ended up adding the following lines to
/etc/iceweasel/pref/iceweasel.js (Debian-specific, I guess the
"upstream" one is /etc/iceweasel/profile/prefs.js), which IMHO should be
added to README.Debian:

--8<---------------cut here---------------start------------->8---
// <https://bugs.debian.org/236227>
pref("print.postscript.paper_size", "iso_a4");
pref("print.print_paper_height", "297.00");
pref("print.print_paper_name", "iso_a4");
pref("print.print_paper_size_type", 1);
pref("print.print_paper_size_unit", 1);
pref("print.print_paper_width", "210.00");
--8<---------------cut here---------------end--------------->8---

Obviously, the same lines works for /etc/icedove/pref/icedove.js, too.

Please note that the Firefox FAQ does not say anything about the above
values, nor about print.print_paper_size, which is a completely
different beast WRT print.postscript.paper_size:

  <http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries#Print.>
  <http://forums.mozillazine.org/viewtopic.php?t=378536>

> Furthermore, Iceweasel ignores not only /etc/papersize, but also the
> environment locale settings, such as LC_PAPER="sk_SK.UTF-8"
> I'm not sure, whether should I fill another, separate bug for the instance, or
> this one is enough.

The upstream bug considers both sources, one Debian bug is enough.

FWIW, the submitter of the upstream bug proposed an IMHO correct and
exhaustive solution based on LC_* environment variables:

  <https://bugzilla.mozilla.org/show_bug.cgi?id=147419#c25>

Thx, bye,
Gismo / Luca

Attachment: signature.asc
Description: Digital signature

Reply via email to