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

Bug#274289: locales: postinst should not overwrite settings in /etc/environment



On Fri, Oct 01, 2004 at 11:56:39AM +0900, GOTO Masanori wrote:
> At Thu, 30 Sep 2004 22:38:04 +0200,
> Adeodato Sim? wrote:
[...]
> >   though it should *never* modify it, one would expect *at* *least*, for
> >   it to remain untouched if the answer to "default_environment_locale"
> >   is "None" (which is my case). currently is not the case: with "None"
> >   as an answer, the LANG seting in $EE gets deleted.
> > 
> >   quoting Michael Tokarev in #274208:
> > 
> >     [...] debconf database is only a cache for configuration questions,
> >     and should NOT be used to STORE the config info, which, if needed,
> >     should be retrieved from actual config files [...] during upgrade.
> 
> Yeah, it seems we should improve this issue for /etc/environment.
> 
> "None" means "I don't want to set LANG variable to /etc/environment".
>
> In this case, I think adding "Don't touch /etc/environment" entry is
> appropriate like "Don't touch keymap" in console related package (I
> forgot the actual package name, but I guess you know it).  In
> addition, "None" is vague name - I propose it as "Don't set LANG" and
> so on.

No, locales.config parses this file in order to catch user's settings.
I can see two reasons why this could fail:
  a. locales.config is unable to parse /etc/environment.
  b. The selected locale is not listed in SUPPORTED.
About (a), the format of /etc/environment is mostly unspecified, so
it is not worth trying to fix this parsing, the right solution is to
let the locales package handle its own configuration file.
About (b), I am not sure how to best fix it, but this bugreport should
then be retitled.

Denis



Reply to: