* bug#23544: 25.0.93; default paper size assumed from LANG locale setting -- use LC_PAPER
@ 2016-05-15 20:53 René Genz
2016-05-16 15:19 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: René Genz @ 2016-05-15 20:53 UTC (permalink / raw)
To: 23544
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é
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#23544: 25.0.93; default paper size assumed from LANG locale setting -- use LC_PAPER
2016-05-15 20:53 bug#23544: 25.0.93; default paper size assumed from LANG locale setting -- use LC_PAPER René Genz
@ 2016-05-16 15:19 ` Eli Zaretskii
2016-05-18 0:09 ` René Genz
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2016-05-16 15:19 UTC (permalink / raw)
To: René Genz; +Cc: 23544
> From: René Genz <liebundartig@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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#23544: 25.0.93; default paper size assumed from LANG locale setting -- use LC_PAPER
2016-05-16 15:19 ` Eli Zaretskii
@ 2016-05-18 0:09 ` René Genz
2016-05-18 2:35 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: René Genz @ 2016-05-18 0:09 UTC (permalink / raw)
Cc: 23544
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 :)
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#23544: 25.0.93; default paper size assumed from LANG locale setting -- use LC_PAPER
2016-05-18 0:09 ` René Genz
@ 2016-05-18 2:35 ` Eli Zaretskii
0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2016-05-18 2:35 UTC (permalink / raw)
To: René Genz; +Cc: 23544-done
> From: René Genz <liebundartig@freenet.de>
> Date: Wed, 18 May 2016 02:09:22 +0200
> Cc: 23544@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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-05-18 2:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-15 20:53 bug#23544: 25.0.93; default paper size assumed from LANG locale setting -- use LC_PAPER René Genz
2016-05-16 15:19 ` Eli Zaretskii
2016-05-18 0:09 ` René Genz
2016-05-18 2:35 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.