ccsm crashes with "locale.Error: unsupported locale setting" when locale is unsupported - should fallback to C
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
compizconfig-settings-manager (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
TEST CASE:
1. open a terminal
2. run the command:
$ export LC_MESSAGES=unknown
3. ccsm
Results:
The crash below. ccsm should catch the exception and fallback to C.
$ ccsm
(process:1732): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Traceback (most recent call last):
File "/usr/bin/ccsm", line 93, in <module>
import ccm
File "/usr/lib/
from ccm.Conflicts import *
File "/usr/lib/
from ccm.Constants import *
File "/usr/lib/
locale.
File "/usr/lib/
return _setlocale(
locale.Error: unsupported locale setting
When started with LANG=C it opens fine.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: compizconfig-
ProcVersionSign
Uname: Linux 2.6.39-3-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Sun Jun 12 20:58:30 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110423)
PackageArchitec
ProcEnviron:
LANGUAGE=de:en
PATH=(custom, no user)
LANG=C
LC_MESSAGES=
SHELL=/bin/bash
SourcePackage: compizconfig-
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | added: testcase |
Thanks for your report. This is easily reproducible. I'm setting to triaged/low because the workaround is easy, and usually the locale is set to a supported and installed locale.