always in english, even after changing locale

Bug #234474 reported by Florent
34
This bug affects 1 person
Affects Status Importance Assigned to Milestone
slim (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Hardy by Florent
Nominated for Intrepid by Florent

Bug Description

Binary package hint: slim

The display manager does not take into account the language of the system

Here is the command to change the locale :
$ sudo update-locale LANG=fr_FR.UTF-8
$ cat /etc/default/locale
LANG=fr_FR.UTF-8
(or you can use package "language-selector" to change the language)
But this change is not taken into account by Slim, because it does not read "/etc/default/locale"

I compared with what is done by gdm for the localization
Here is the part of the code taken from "/etc/init.d/gdm" and injected in "/etc/init.d/slim"
It simply works as expected.

Please provide a fixed package for Hardy and future releases.

--- a/etc/init.d/slim 2008-05-23 00:00:00.000000000 +0200
+++ b/etc/init.d/slim 2008-05-24 00:59:32.000000000 +0200
@@ -24,6 +24,14 @@
 SSD_START_ARGS="--pidfile $PIDFILE --name $(basename $DAEMON) --startas $DAEMON -- -d"
 SSD_STOP_ARGS="--pidfile $PIDFILE --name $(basename $DAEMON) --retry TERM/5/TERM/5"

+if [ -r /etc/default/locale ]; then
+ . /etc/default/locale
+ export LANG LANGUAGE
+elif [ -r /etc/environment ]; then
+ . /etc/environment
+ export LANG LANGUAGE
+fi
+
 case $1 in
   start)
     if [ "$HEED_DEFAULT_DISPLAY_MANAGER" = "true" ] &&

Revision history for this message
Florent (florent.x) wrote :
Changed in slim:
status: New → Confirmed
Revision history for this message
Nick Ellery (nick.ellery) wrote :

Is anyone else able to reproduce this bug?

Revision history for this message
Florent (florent.x) wrote :

I've tested the bug on Gutsy first.
Yesterday I installed Hardy and experienced same problem.

First I looked around on forums, and I saw that french users have similar localization problem with SLiM and derived works (Fluxbuntu).
http://forum.ubuntu-fr.org/viewtopic.php?id=161315
http://community.fluxbuntu.org/index.php?topic=418.msg1939#msg1939

And I've found bugs #161802 and #165257 which are very similar.

According to the analysis above, where GDM script is compared with SLiM, the bug should be fixed on the login manager side.
IMHO the other bugs should be marked duplicate of the bug in SLiM.

Revision history for this message
Florent (florent.x) wrote :

bug #161802 and bug #165257 are marked duplicate of this bug

Revision history for this message
Jonathan Slark (jonslark) wrote :

I also get this after installing slim on a command line only install of Hardy Heron. The output of 'locale -a' shows everything set to POSIX, apart from LC_ALL and LANG which are both blank. Adding the above fix worked.

Revision history for this message
Jonathan Slark (jonslark) wrote :

Sorry, that should be the output of just locale with no arguments.

Revision history for this message
pinzia (pinzia) wrote :

Fixed for me in Intrepid. Thank's

Revision history for this message
Matthias Mailänder (mailaender) wrote :

I wrote a bugreport for the slim developers to let them know: https://developer.berlios.de/bugs/?func=detailbug&bug_id=14752&group_id=2663

Revision history for this message
Matthias Mailänder (mailaender) wrote :

I used prevu to backport the fixed slim package for Hardy. It works too. Thanks

Changed in slim:
status: Confirmed → Fix Released
Revision history for this message
Fred (staubi) wrote :

In Jaunty the problem still exists!!!

Was there a bugfix for Hardy which got lost again?

Thanks for the workaround!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.