Bug#214766: Applets are started with LC_ALL set to a weird string

Christian Marillat Christian Marillat <marillat@debian.org>, 214766@bugs.debian.org
Sun, 26 Oct 2003 11:42:12 +0100


reassign 214766 libbonobo2-0
tag 214766 + patch
thanks

Josselin Mouette <joss@debian.org> writes:

> Package: gnome-panel
> Version: 2.2.2.2-2
> Severity: normal
>
> I don't know if this bug comes from gnome-panel itself or from 
> libpanel-applet: when applets are started, the LC_ALL environment 
> variable, which is unset normally, gets set to a weird string, which 
> makes applications fail to set their locale correctly, falling back to 
> C.

libbonobo bug. Bellow is a quick and dirty hack (tested) :

Christian

--- libbonobo-2.4.1/bonobo-activation/bonobo-activation-activate.c      2003-10-26 11:20:51.000000000 +0100
+++ ../tmp/libbonobo-2.4.1/bonobo-activation/bonobo-activation-activate.c       2003-06-09 13:00:42.000000000 +0200
@@ -722,6 +722,7 @@
                const char *name;
                const char *value;
        } setlocale_values[] =  { /* locale information: see setlocale(3) */
+               { LC_ALL,      "LC_ALL",          NULL },
                { LC_COLLATE,  "LC_COLLATE",      NULL }, 
                { LC_MESSAGES, "LC_MESSAGES",     NULL },
                { LC_MONETARY, "LC_MONETARY",     NULL },