Cannot display "Monitor & Display" kcontrol module; Python exception

Bug #65739 reported by Daniel Hahler
12
Affects Status Importance Assigned to Milestone
kde-guidance (Ubuntu)
Fix Released
Undecided
Sebastian Kügler

Bug Description

Binary package hint: kde-guidance

I get the following exception when trying to view the "Monitor & Display" module in kcontrol:

Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_displayconfig
  File "/var/lib/python-support/python2.4/displayconfig.py", line 1687, in create_displayconfig
    return DisplayApp(parent, name)
  File "/var/lib/python-support/python2.4/displayconfig.py", line 443, in __init__
    self.xsetup = XSetup(self.xconfigpath)
  File "/var/lib/python-support/python2.4/displayconfigabstraction.py", line 73, in __init__
    self.xorg_config = xorgconfig.readConfig(xorg_config_filename)
  File "/var/lib/python-support/python2.4/xorgconfig.py", line 641, in readConfig
    for row in XorgconfCVSReader(filename=filename).readlines():
  File "/var/lib/python-support/python2.4/xorgconfig.py", line 696, in __init__
    fhandle = codecs.open(filename,'r',locale.getpreferredencoding(),'replace')
  File "/usr/lib/python2.4/locale.py", line 417, in getpreferredencoding
    setlocale(LC_CTYPE, "")
  File "/usr/lib/python2.4/locale.py", line 381, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
error: *** runFunction failure
;

This does not happen, if I start kcontrol with the "C" locale.
LANG=C kcontrol

LANG is "de_DE.UTF-8" here.

The problem is probably not with kde-guidance itself, but a package it relies on, so please change it accordingly.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Seems to be that my locale "de_DE.UTF-8" was not supported anymore (since some upgrade the last days).
I've run "dpkg-reconfigure locales" and now it works.

However, this should not cause the kcontrol module to fail IMHO.

Revision history for this message
Sebastian Kügler (sebasje) wrote :

Thanks for the report, it's fixed in current svn with the patch from the next post.

Changed in kde-guidance:
assignee: nobody → sebas-kde
status: Unconfirmed → Fix Committed
Revision history for this message
Sebastian Kügler (sebasje) wrote :
Revision history for this message
Sebastian Kügler (sebasje) wrote :

The previous patch os broken, this one should fix it (apply instead of previous patch)

Revision history for this message
Luka Renko (lure) wrote :

Released for Feisty

Changed in kde-guidance:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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