gnome-dvb-setup doesn't handle non-UTF8 locale for XDG directories

Bug #558583 reported by Frédéric Crozat on 2010-04-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

after a succesful channel detection, gnome-dvb-setup fails to complete configuration with the following exception :

ERROR:dbus.connection:Unable to set arguments (0, 0, '/home/a/.config/gnome-dvb-daemon/channels_DVB-T.conf', '/home/a/Vid\xe9os/Recordings', 'digital terrestrial TV') according to signature u'uusss': <type 'exceptions.UnicodeError'>: String parameters to be sent over D-Bus must be valid UTF-8
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/dbus/", line 586, in msg_reply_handler
  File "/usr/lib/python2.6/site-packages/gnomedvb/ui/wizard/pages/", line 123, in write_channels_handler
    reply_handler=reply_handler, error_handler=error_handler)
  File "/usr/lib/python2.6/site-packages/gnomedvb/", line 159, in add_device_to_new_group
    return self.manager.AddDeviceToNewGroup(adapter, frontend, channels_file, recordings_dir, name, **kwargs)
  File "/usr/lib/python2.6/site-packages/dbus/", line 132, in __call__
  File "/usr/lib/python2.6/site-packages/dbus/", line 566, in call_async
    message.append(signature=signature, *args)
UnicodeError: String parameters to be sent over D-Bus must be valid UTF-8

This is probably because my test system is running non-UTF8 locale : fr_FR.ISO8859-15 (and not fr_FR.UTF-8), with G_FILENAME_ENCODING=@locale

btw, the progressbar in "continous mode" doesn't see the exception and continues running and running..

Related branches

Sebastian Pölsterl (sebp) wrote :

Thanks for reporting. Here you have another patch to test ;)

Frédéric Crozat (fcrozat) wrote :

bug fixed with this patch.

Changed in gnome-dvb-daemon:
status: New → Fix Committed
Changed in gnome-dvb-daemon:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers