system-config-printer.py crashed with Error in setlocale() in Hardy 8.04 64bit

Bug #227793 reported by Coffen
6
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: system-config-printer

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/system-config-printer/system-config-printer.py
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: system-config-printer-gnome 0.7.81+svn1976-0ubuntu9
PackageArchitecture: all
ProcCmdline: python /usr/share/system-config-printer/system-config-printer.py
ProcEnviron:
 LC_TIME=fi_FI.UTF8
 PATH=/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/share/system-config-printer/system-config-printer.py']
SourcePackage: system-config-printer
Title: system-config-printer.py crashed with Error in setlocale()
Uname: Linux 2.6.24-16-generic x86_64
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev root sambashare scanner video

Tags: apport-crash
Revision history for this message
Coffen (christoffer-riska) wrote :
Revision history for this message
Coffen (christoffer-riska) wrote :

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.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Closing then.

Changed in system-config-printer (Ubuntu):
status: New → 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.