GNU bug report logs -
#23544
25.0.93; default paper size assumed from LANG locale setting -- use LC_PAPER
Previous Next
Reported by: René Genz <liebundartig <at> freenet.de>
Date: Sun, 15 May 2016 23:28:01 UTC
Severity: minor
Tags: moreinfo
Found in version 25.0.93
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23544 in the body.
You can then email your comments to 23544 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23544
; Package
emacs
.
(Sun, 15 May 2016 23:28:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
René Genz <liebundartig <at> freenet.de>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 15 May 2016 23:28:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Dear sir or madam,
if you want to have English language for text and paper size "A4" on
GNU/Linux as default you can set locale setting to:
LANG=en_US.UTF-8
LC_PAPER=de_DE.UTF-8
This works fine for other applications.
Emacs assumes default paper size from LANG, not LC_PAPER.
Please, use LC_PAPER to assume default paper size, if no (user or
system)option is set.
To reproduce:
1. execute in terminal: LANG=en_US.UTF-8 emacs
2. in Emacs: C-h v ps-paper-type
value is: letter
3. close Emacs
4. in terminal execute: LANG=de_DE.UTF-8 emacs
5. in Emacs: C-h v ps-paper-type
value is: a4
6. value of LC_PAPER does not matter
I am using Fedora 24 x86_64 to write up the bug report.
I can reproduce this with other versions of Emacs on different GNU/Linux
distributions, f.e. Emacs 24.3.1 on Trisquel 7.0 x86_64.
I can work around the problem with:
a) system setting
(setq ps-paper-type (quote a4)))
in /usr/share/emacs/site-lisp/site-start.el
b) user setting
in ${HOME}/.emacs
(customize in Emacs with: C-h v ps-paper-type)
In GNU Emacs 25.0.93.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.20.3)
of 2016-05-03 built on buildhw-12.phx2.fedoraproject.org
--
Kind regards,
René
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23544
; Package
emacs
.
(Mon, 16 May 2016 15:20:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 23544 <at> debbugs.gnu.org (full text, mbox):
> From: René Genz <liebundartig <at> freenet.de>
> Date: Sun, 15 May 2016 22:53:07 +0200
>
> if you want to have English language for text and paper size "A4" on
> GNU/Linux as default you can set locale setting to:
> LANG=en_US.UTF-8
> LC_PAPER=de_DE.UTF-8
>
> This works fine for other applications.
> Emacs assumes default paper size from LANG, not LC_PAPER.
>
> Please, use LC_PAPER to assume default paper size, if no (user or
> system)option is set.
Emacs already uses LC_PAPER for assigning the default value to
ps-paper-type. It's just that the code which did that had a subtle
bug. Now fixed on the emacs-25 branch. Please try that, if you can,
and please see if your problem is solved.
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23544
; Package
emacs
.
(Wed, 18 May 2016 00:12:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 23544 <at> debbugs.gnu.org (full text, mbox):
After compiling branch emacs-25 with:
# install packages: git autoconf automake makeinfo libXpm-devel libjpeg-devel libungif-devel libtiff-devel libXaw-devel gtk+-devel
$ git clone --depth 1 -b emacs-25 git://git.sv.gnu.org/emacs.git
$ cd emacs
$ ./autogen.sh all
$ ./configure
$ make
$ src/emacs
could change paper type depending on LC_PAPER
Thank you very much for the fix :)
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Wed, 18 May 2016 02:36:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
René Genz <liebundartig <at> freenet.de>
:
bug acknowledged by developer.
(Wed, 18 May 2016 02:36:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 23544-done <at> debbugs.gnu.org (full text, mbox):
> From: René Genz <liebundartig <at> freenet.de>
> Date: Wed, 18 May 2016 02:09:22 +0200
> Cc: 23544 <at> debbugs.gnu.org
>
> After compiling branch emacs-25 with:
> # install packages: git autoconf automake makeinfo libXpm-devel libjpeg-devel libungif-devel libtiff-devel libXaw-devel gtk+-devel
> $ git clone --depth 1 -b emacs-25 git://git.sv.gnu.org/emacs.git
> $ cd emacs
> $ ./autogen.sh all
> $ ./configure
> $ make
>
> $ src/emacs
> could change paper type depending on LC_PAPER
>
> Thank you very much for the fix :)
Thanks, I'm closing the bug report.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 15 Jun 2016 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 64 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.