compizconfig-settings-manager ignores $LC_MESSAGES

Bug #778438 reported by Frits van Bommel
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
compizconfig-settings-manager (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: compizconfig-settings-manager

When compizconfig-settings-manager (ccsm) is started with the $LC_MESSAGES environment variable set to a different value than $LANG, it completely ignores $LC_MESSAGES. $LC_ALL doesn't work either.

To reproduce, run something like this from the terminal:
    LANG=nl_NL.utf8 LC_MESSAGES=en_US.utf8 ccsm
This shows some[1] Dutch text, even though I explicitly requested English text through $LC_MESSAGES.
Different locales presumably have the same issue if you don't have the Dutch one installed.

[1]: Only about half the text is in Dutch, the rest is English. That's the case even when $LANG is set to nl_NL.utf8 though, so it's probably just a case of missing translations.

Version information:
Ubuntu 10.10
compizconfig-settings-manager 0.8.2-0ubuntu1

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in compizconfig-settings-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Olleg Samoylov (olleg) wrote :

The same shit with russian locale too.

Revision history for this message
Olleg Samoylov (olleg) wrote :
Revision history for this message
Frits van Bommel (fvbommel) wrote :

No, it actually confirms it was a bug, since that commit looks like the one that fixed it (I can no longer reproduce it).

Look at the code:

+static const char *
+getLocale ()
+{
+ char *lang = getenv ("LC_ALL");
+
+ if (!lang || !strlen (lang))
+ lang = getenv ("LC_MESSAGES");
+
+ if (!lang || !strlen (lang))
+ lang = getenv ("LANG");
+
+ return lang ? lang : "";
+}

This starts by looking at $LC_ALL. If that's unset or empty it tries $LC_MESSAGES, and if that's also unset or empty it falls back to $LANG.
This is exactly what it should be, AFAICT.

Revision history for this message
Olleg Samoylov (olleg) wrote :

Oh no, I was wrong. This patch fixes this bug. This bug still exists in 0.8.4, but fixed in 0.8.8 (latest). Just upgrade to new stable compiz version.

Revision history for this message
Phillip Susi (psusi) wrote :

This package has been removed from Ubuntu. Closing all related bugs.

Changed in compizconfig-settings-manager (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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