[Bug 393818] Re: libpaper should honor the LC_PAPER instead of /etc/papersize
Bug Watch Updater
393818 at bugs.launchpad.net
Thu Oct 31 02:36:57 UTC 2024
** Changed in: libpaper (Debian)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libpaper in Ubuntu.
https://bugs.launchpad.net/bugs/393818
Title:
libpaper should honor the LC_PAPER instead of /etc/papersize
Status in libpaper package in Ubuntu:
Won't Fix
Status in libpaper package in Debian:
Fix Released
Bug description:
libpaper should be fixed to honor locale settings instead of always
reading /etc/papersize.
I'd prefer removing support for /etc/papersize altogether, but
honoring locale settings over a global file would be a nice start.
Actual results (I have "a4" in /etc/papersize):
$ LC_PAPER=en_US.UTF-8 paperconf -s -m
210 mm 297 mm
$ LC_PAPER=en_DK.UTF-8 paperconf -s -m
210 mm 297 mm
Expected results:
$LC_PAPER=en_US.UTF-8 paperconf -s -m
215.9 mm 279.4 mm
$ LC_PAPER=en_DK.UTF-8 paperconf -s -m
210 mm 297 mm
(paperconf should probably also use "-s" or "-i" automatically
according to LC_MEASUREMENT)
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty
$ apt-cache policy libpaper1
libpaper1:
Installed: 1.1.23+nmu1
Candidate: 1.1.23+nmu1
Version table:
*** 1.1.23+nmu1 0
500 http://fi.archive.ubuntu.com jaunty/main Packages
100 /var/lib/dpkg/status
$ ldd $(which paperconf)
linux-vdso.so.1 => (0x00007fffaeffe000)
libpaper.so.1 => /usr/lib/libpaper.so.1 (0x00007f13a6a7e000)
libc.so.6 => /lib/libc.so.6 (0x00007f13a670c000)
/lib64/ld-linux-x86-64.so.2 (0x00007f13a6c82000)
Other information:
libpaper seems to honor PAPERSIZE environment variable. The PAPERSIZE environment variable seems inferior to querying actual paper size because every application that inspects the PAPERSIZE environment variable must include a list of paper names and sizes and such list cannot ever be complete.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libpaper/+bug/393818/+subscriptions
More information about the foundations-bugs
mailing list