Bug#365628: postinst fails when LANG doesn't point to a valid locale
On Wed, May 03, 2006 at 01:43:58AM +0200, Denis Barbier wrote:
> > - /usr/sbin/update-locale LANG
> > + LANG= /usr/sbin/update-locale LANG
> > fi
> > if [ -n "$SELECTED" ] && [ "$SELECTED" != "None" ]; then
> > /usr/sbin/update-locale "LANG=$SELECTED"
>
> A slightly different fix has already been committed in SVN,
> update-locale is called with the --no-checks flag.
>
> > But according to the manpage, I don't see why update-locale should care about
> > the LANG env variable. Perhaps the problem is there?
>
> Several problems have been reported because of inconsistencies between
> LANG and LANGUAGE, so I try to make sure that selected locale is usable.
> If these consistency checks make more harm than good, they will be dropped.
AIUI, the checks update-locale is expected to do (and those --no-checks avoids)
are the ones passed as arguments (ala update-locale LANG=foo). The manpage
doesn't make any reference to variables passed through the environment.
(that said, if postinst works I don't really mind..)
--
Robert Millan
Reply to: