Debian Bug report logs - #330701
locales: LANG from /etc/environment is not chosen, always LANG= and POSIX

version graph

Package: libpam-modules; Maintainer for libpam-modules is Steve Langasek <vorlon@debian.org>; Source for libpam-modules is src:pam (PTS, buildd, popcon).

Reported by: Luca Capello <luca@pca.it>

Date: Thu, 29 Sep 2005 12:03:01 UTC

Severity: important

Tags: l10n, pending

Merged with 330458, 330500, 330687, 330712, 331005

Found in version libpam-modules/0.79-1

Fixed in versions libpam-modules/0.79-2, pam/0.79-2

Done: "Adam D. Barratt" <debian-bts@adam-barratt.org.uk>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#330701; Package locales. (full text, mbox, link).


Acknowledgement sent to Luca Capello <luca@pca.it>:
New Bug report received and forwarded. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Luca Capello <luca@pca.it>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: locales: LANG from /etc/environment is not chosen, always LANG= and POSIX
Date: Thu, 29 Sep 2005 13:47:46 +0200
Package: locales
Version: 2.3.5-6
Severity: important
Tags: l10n

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I don't know exactly since when (I upgrade my Debian unstable every
morning and anyway since no more than a week), but now the LANG
variable is no more set (and so the locales):
=====
luca@gismo:~$ locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
luca@gismo:~$ 
=====

I tried to change it with `dpkg-reconfigure -plow locales` (even if my
priority is already low), but while the LANG is changed in the
/etc/environment file, `locale` never shows it (and I always have
POSIX...).

`export LANG=en_US.UTF-8` works, but AFAIK this shouldn't be done if
LANG is set in /etc/environment.

Am I missing some new changes? Other than the daily upgrades, I
haven't changed my locales since a while.

Thx, bye,
Gismo / Luca

- -- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages locales depends on:
ii  debconf                       1.4.58     Debian configuration management sy
ii  libc6 [glibc-2.3.5-3]         2.3.5-6    GNU C Library: Shared libraries an

locales recommends no packages.

- -- debconf information:
* locales/default_environment_locale: en_US.UTF-8
* locales/locales_to_be_generated: en_US ISO-8859-1, en_US.ISO-8859-15 ISO-8859-15, en_US.UTF-8 UTF-8, it_IT ISO-8859-1, it_IT.UTF-8 UTF-8, it_IT.UTF-8@euro UTF-8, it_IT@euro ISO-8859-15

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDO9RiVAp7Xm10JmkRAnQsAJ0UJeI3ViWeWvpRFFlYpP4bvD/bYQCfcwDb
1rwfFJ3JTID/wCC/PKeEO3w=
=IGLC
-----END PGP SIGNATURE-----



Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#330701; Package locales. (full text, mbox, link).


Acknowledgement sent to "Adam D. Barratt" <debian-bts@adam-barratt.org.uk>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #10 received at 330701@bugs.debian.org (full text, mbox, reply):

From: "Adam D. Barratt" <debian-bts@adam-barratt.org.uk>
To: "Luca Capello" <luca@pca.it>, <330701@bugs.debian.org>
Cc: <libpam-modules@packages.debian.org>
Subject: Re: Bug#330701: locales: LANG from /etc/environment is not chosen, always LANG= and POSIX
Date: Thu, 29 Sep 2005 15:08:31 +0100
reassign 330701 libpam-modules
close 330701 0.79-2
merge 330701 330458
thanks

Hi,

On Thursday, September 29, 2005 12:47 PM, Luca Capello <luca@pca.it> wrote:
[...]
> I don't know exactly since when (I upgrade my Debian unstable every
> morning and anyway since no more than a week), but now the LANG
> variable is no more set (and so the locales):

This isn't a bug in locales, but in libpam-modules. The fixed package has
already been uploaded, and should hit mirrors tonight.

Reassigning, merging with the earlier reports and closing.

Regards,

Adam




Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#330701; Package locales. (full text, mbox, link).


Acknowledgement sent to "Michael Setzer" <michael.setzer@celeborn.de>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #15 received at 330701@bugs.debian.org (full text, mbox, reply):

From: "Michael Setzer" <michael.setzer@celeborn.de>
To: <330701@bugs.debian.org>
Date: Thu, 29 Sep 2005 16:36:00 +0200
Hi,

I had the same problem a few minutes ago and figured out that the locales
packages doesn't erflect the changes that have been made in the login
package:

    # cat /etc/pam.d/su

    [...]
    # This module parses /etc/environment (the standard for setting
    # environ vars) and also allows you to use an extended config
    # file /etc/security/pam_env.conf.
    # (Replaces the `ENVIRON_FILE' setting from login.defs)
    auth       required   pam_env.so
    [...]

This means that you have to add something like

	LANG=de_DE@euro

to your /etc/security/pam_env.conf and everything should work again as
usual.

Maybe this issue should be reflected in the next version of the locales
package so that the pam_env.conf file will be upgraded properly by any
`dpkg-reconfigure locales`.

Regards, Michael




Bug reassigned from package `locales' to `libpam-modules'. Request was from "Adam D. Barratt" <debian-bts@adam-barratt.org.uk> to control@bugs.debian.org. (full text, mbox, link).


Bug marked as fixed in version 0.79-2, send any further explanations to Luca Capello <luca@pca.it> Request was from "Adam D. Barratt" <debian-bts@adam-barratt.org.uk> to control@bugs.debian.org. (full text, mbox, link).


Merged 330458 330500 330701. Request was from "Adam D. Barratt" <debian-bts@adam-barratt.org.uk> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Sam Hartman <hartmans@debian.org>:
Bug#330701; Package libpam-modules. (full text, mbox, link).


Acknowledgement sent to "Adam D. Barratt" <debian-bts@adam-barratt.org.uk>:
Extra info received and forwarded to list. Copy sent to Sam Hartman <hartmans@debian.org>. (full text, mbox, link).


Message #26 received at 330701@bugs.debian.org (full text, mbox, reply):

From: "Adam D. Barratt" <debian-bts@adam-barratt.org.uk>
To: "Michael Setzer" <michael.setzer@celeborn.de>, <330701@bugs.debian.org>
Cc: <debian-glibc@lists.debian.org>
Subject: Re: Bug#330701:
Date: Thu, 29 Sep 2005 15:59:42 +0100
Hi,

On Thursday, September 29, 2005 3:36 PM, Michael Setzer
<michael.setzer@celeborn.de> wrote:
[...]
> This means that you have to add something like
>
> LANG=de_DE@euro
>
> to your /etc/security/pam_env.conf and everything should work again as
> usual.

That's a workaround, not a solution. The correct solution is to upgrade to
the fixed version of libpam-modules - the package that caused the problem -
which should hit mirrors tonight (0.79-2)

> Maybe this issue should be reflected in the next version of the
> locales package so that the pam_env.conf file will be upgraded
> properly by any `dpkg-reconfigure locales`.

No. locales shouldn't, and more to the point *can't*, touch pam_env.conf, as
it belongs to an entirely different package.

adam@kaa:~$ dpkg -S /etc/security/pam_env.conf
libpam-modules: /etc/security/pam_env.conf

(Hence the first paragraph above, and the fact that I reassigned and closed
this bug earlier).

Regards,

Adam




Merged 330458 330500 330701 330712. Request was from Steve Langasek <vorlon@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Merged 330458 330500 330687 330701 330712. Request was from Martin Quinson <martin.quinson@loria.fr> to control@bugs.debian.org. (full text, mbox, link).


Severity set to `important'. Request was from Steve Langasek <vorlon@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Merged 330458 330500 330687 330701 330712. Request was from Steve Langasek <vorlon@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Merged 330458 330500 330687 330701 330712 331005. Request was from Colin Watson <cjwatson@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Tags added: pending Request was from vorlon@users.alioth.debian.org to control@bugs.debian.org. (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 24 Jun 2007 07:41:47 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Jan 9 21:21:33 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.