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
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?
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?
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.
Peter Krefting a écrit : Is there any error during the locale generation?
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.
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