[Bug 160415] systemsettings user module crashes with an unicode error

Pekka Jääskeläinen pekka.jaaskelainen at gmail.com
Tue Nov 6 08:59:16 UTC 2007


Public bug reported:

Binary package hint: kde-systemsettings

In Gutsy I cannot load the User Management module, probably because I
have users with non ascii-letters in their names.

Should be a trivial fix to a bug that should affect quite a lots of
people in non-english-countries:

$ systemsettings
adding User Management /usr/share/applications/kde/userconfig.desktop


Pythonize constructor -- pid = 5962
Python interpreter initialized!


Pythonize constructor -- pid = 5962
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_userconfig
  File "/var/lib/python-support/python2.5/userconfig.py", line 1696, in create_userconfig
    return UserConfigApp(parent, name)
  File "/var/lib/python-support/python2.5/userconfig.py", line 267, in __init__
    self.admincontext = unixauthdb.getContext(isroot)
  File "/var/lib/python-support/python2.5/unixauthdb.py", line 74, in getContext
    return PwdContext(editmode)
  File "/var/lib/python-support/python2.5/unixauthdb.py", line 727, in __init__
    for line in fhandle.readlines():
  File "/usr/lib/python2.5/codecs.py", line 626, in readlines
    return self.reader.readlines(sizehint)
  File "/usr/lib/python2.5/codecs.py", line 535, in readlines
    data = self.read()
  File "/usr/lib/python2.5/codecs.py", line 424, in read
    newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1813-1815: invalid data
Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/apport_python_hook.py", line 42, in apport_excepthook
    binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
AttributeError: 'module' object has no attribute 'argv'

Original exception was:
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_userconfig
  File "/var/lib/python-support/python2.5/userconfig.py", line 1696, in create_userconfig
    return UserConfigApp(parent, name)
  File "/var/lib/python-support/python2.5/userconfig.py", line 267, in __init__
    self.admincontext = unixauthdb.getContext(isroot)
  File "/var/lib/python-support/python2.5/unixauthdb.py", line 74, in getContext
    return PwdContext(editmode)
  File "/var/lib/python-support/python2.5/unixauthdb.py", line 727, in __init__
    for line in fhandle.readlines():
  File "/usr/lib/python2.5/codecs.py", line 626, in readlines
    return self.reader.readlines(sizehint)
  File "/usr/lib/python2.5/codecs.py", line 535, in readlines
    data = self.read()
  File "/usr/lib/python2.5/codecs.py", line 424, in read
    newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1813-1815: invalid data
error: *** runFunction failure
;

** Affects: kde-systemsettings (Ubuntu)
     Importance: Undecided
         Status: New

-- 
systemsettings user module crashes with an unicode error
https://bugs.launchpad.net/bugs/160415
You received this bug notification because you are a member of Kubuntu
Team, which is a bug contact for kde-systemsettings in ubuntu.




More information about the kubuntu-bugs mailing list