]> code.delx.au - gnu-emacs/commitdiff
Fix bug in default setting of 'ps-paper-type'
authorEli Zaretskii <eliz@gnu.org>
Mon, 16 May 2016 15:14:54 +0000 (18:14 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 16 May 2016 15:14:54 +0000 (18:14 +0300)
* lisp/international/mule-cmds.el (set-locale-environment): Don't
inherit the value of locale from previous examination of different
environment variables, which didn't look at LC_PAPER, and so using
that value would effectively ignore the setting of LC_PAPER.
(Bug#23544)

lisp/international/mule-cmds.el

index 001aad14754dfedafbe8b1f6fd18443c931650ec..e7c7049cd0a22d817c80b782086b86f67e949686 100644 (file)
@@ -2733,8 +2733,8 @@ See also `locale-charset-language-names', `locale-language-names',
     ;; Default to A4 paper if we're not in a C, POSIX or US locale.
     ;; (See comments in Flocale_info.)
     (unless frame
-      (let ((locale locale)
-           (paper (locale-info 'paper)))
+      (let ((paper (locale-info 'paper))
+            locale)
        (if paper
            ;; This will always be null at the time of writing.
            (cond