[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#364490: 'dpkg-reconfigure locales' does not update /etc/environment



On Wed, May 10, 2006 at 06:44:32PM +0200, Mourad De Clerck wrote:
> Gary V wrote:
> >   * Locale variables are now stored in /etc/default/locale and no more
> >     /etc/environment.  The reason is that Debian Policy forbids modifying
> >     configuration files of other packages, and /etc/environment is a
> >     configuration file for PAM.
> >     Make sure to remove old definitions from /etc/environment, this file
> >     is no more modified for the reason explained above.
> > 
> > OK, thank you.
> 
> Does this mean the administrator has to change /etc/environment herself?

Yes.  But you should wait until all applications which read
/etc/environment are modified to read locale variables from
/etc/default/locale.

> The note only mentions removing old definitions. Should /etc/environment
> just source /etc/default/locale?

No, this is not possible, because /etc/environment is a PAM
configuration file, which AFAICT does not support including
other files.

> Also (not sure if this is a bug, or I'd file it separately) - shouldn't
> /etc/default/locale be a conffile?

There is no default configuration, so the locales package cannot ship an
/etc/default/locale conffile, it is handled by maintainer scripts
instead, as described in policy 10.7.

Denis



Reply to: