#573214 locales: sv_SE.ISO8859-1 locale suddenly invalid(?)

#573214#5
Date:
2010-03-09 19:10:18 UTC
From:
To:
This configuration has worked for me for a long time:

  $ echo $LC_ALL
  sv_SE.ISO8859-1
  $ echo $LANG
  sv
  $ echo $LANGUAGE
  sv_SE.ISO-8859-1:sv:nb_NO.ISO-8859-1:nb:da_DK.ISO-8859-1:da:nn_NO.ISO-8859-1:nn:en_GB.ISO-8859-1:en_US.ISO-8859-1:en

But suddenly (probably after a recent security update) it has started
producing error messages:

  locale: Cannot set LC_CTYPE to default locale: No such file or directory
  locale: Cannot set LC_MESSAGES to default locale: No such file or directory
  locale: Cannot set LC_COLLATE to default locale: No such file or directory

That doesn't seem right. I still get Swedish sort order, Swedish messages
from software and Swedish manual pages where available, so something strange
is going on.

  $ locale
  LANG=sv
  LANGUAGE=sv_SE.ISO-8859-1:sv:nb_NO.ISO-8859-1:nb:da_DK.ISO-8859-1:da:nn_NO.ISO-8859-1:nn:en_GB.ISO-8859-1:en_US.ISO-8859-1:en
  LC_CTYPE="sv_SE.ISO8859-1"
  LC_NUMERIC="sv_SE.ISO8859-1"
  LC_TIME="sv_SE.ISO8859-1"
  LC_COLLATE="sv_SE.ISO8859-1"
  LC_MONETARY="sv_SE.ISO8859-1"
  LC_MESSAGES="sv_SE.ISO8859-1"
  LC_PAPER="sv_SE.ISO8859-1"
  LC_NAME="sv_SE.ISO8859-1"
  LC_ADDRESS="sv_SE.ISO8859-1"
  LC_TELEPHONE="sv_SE.ISO8859-1"
  LC_MEASUREMENT="sv_SE.ISO8859-1"
  LC_IDENTIFICATION="sv_SE.ISO8859-1"
  LC_ALL=sv_SE.ISO8859-1
  $ locale -a |fgrep sv
  sv_SE
  sv_SE.iso88591
  sv_SE.iso885915
  sv_SE.utf8

#573214#10
Date:
2010-03-10 07:26:56 UTC
From:
To:
Peter Krefting a écrit :

The settings are correct, but it looks like the locales generation has
failed last time the package has been installed. Could you try to run
"dpkg-reconfigure locales", and send the possible error messages that
happens during locales generation?

#573214#15
Date:
2010-03-10 07:26:56 UTC
From:
To:
Peter Krefting a écrit :

The settings are correct, but it looks like the locales generation has
failed last time the package has been installed. Could you try to run
"dpkg-reconfigure locales", and send the possible error messages that
happens during locales generation?

#573214#20
Date:
2010-03-10 07:49:46 UTC
From:
To:
Hi!

Sorry, I should have mentioned that I did run that to make sure, and the
problem remained.

I see the same problem on another of my machines, also running Lenny, but
this time i386 instead of amd64.

#573214#25
Date:
2010-03-10 08:07:32 UTC
From:
To:
Peter Krefting a écrit :

Is there any error during the locale generation?

#573214#30
Date:
2010-03-10 09:10:29 UTC
From:
To:
Hi!

Not as far as I can see:

# dpkg-reconfigure locales
Generating locales (this might take a while)...
   sv_SE.UTF-8... done
   en_US.ISO-8859-1... done
   en_US.ISO-8859-15... done
   en_US.UTF-8... done
   nb_NO.ISO-8859-1... done
   nb_NO.UTF-8... done
   nn_NO.ISO-8859-1... done
   nn_NO.UTF-8... done
   sv_SE.ISO-8859-1... done
   sv_SE.ISO-8859-15... done
Generation complete.

#573214#35
Date:
2010-03-23 23:52:09 UTC
From:
To:
Hi

This is not a bug. I have experienced the same problem in previous
installations of Debian,
when upgrading and installing stuff.

It's some package that needs to be reconfigured by using
dpkg-reconfigure, with the right
options. I don't remember which, and I am not on Debian right now. But I
hopefully can explain
what I did.

It is some package that questions stuff about the keyboard layout during
a dpkg-reconfigure.
It asks Keep the current keyboard layout.. or Don't touch the keyboard
layout.. you should not
choose either of these options.. in Swedish it says something like
"Behåll kärnans tangentuppsättning"..
You should not choose this.

You need to choose a new layout from a list if I remember right.. and
the alternative will show up together
with those options that I mentioned above.. after this has been done the
problem disappeared for me

Hmm but I am not sure if this could be set automatically in some way..
I hope this helps.

All the best
Macke