system-config-printer.py crashed with Error in setlocale() in Hardy 8.04 64bit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
system-config-printer (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: system-
System -> Administration -> Printing
or
System -> Preferences -> Default Printer
This bug has reappeared in Hardy 8.04 64bit.
It was first reported as bug #89122 in 2007 and then fixed only to be broken again in Hardy.
To replicate the problem edit /etc/default/locale
and add a locale setting from a different locale.
I am using Ubuntu with English language but as I live in Finland I want the week to start with a Monday rather than a Sunday so I added the LC_TIME parameter.
LANG="en_US.UTF-8"
LC_TIME=fi_FI.UTF8
If I remove the LC_TIME parameter then everything works fine.
As soon as I add any locale parameter with fi_FI.UTF8 then the problem is back.
This bug is not present in Ubuntu Gutsy 7.10 32bit
ProblemType: Crash
Architecture: amd64
Date: Wed May 7 18:00:38 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/share/
InterpreterPath: /usr/bin/python2.5
NonfreeKernelMo
Package: system-
PackageArchitec
ProcCmdline: python /usr/share/
ProcEnviron:
LC_TIME=fi_FI.UTF8
PATH=/
LANG=en_US.UTF-8
SHELL=/bin/bash
PythonArgs: ['/usr/
SourcePackage: system-
Title: system-
Uname: Linux 2.6.24-16-generic x86_64
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev root sambashare scanner video
Update.
This does not seem to be a bug after all.
The locale fi_FI was missing from the file /var/lib/ locales/ supported. d/local
The file should look like this:
en_US.UTF-8 UTF-8
fi_FI.UTF-8 UTF-8
After adding the fi_FI locale to supported locales I ran:
sudo dpkg-reconfigure locales
Restarted X and now system- config- printer works just fine.