Permalink
Browse files

[s][ui] Bugfix lp:832851 dealing with non-ASCII names

  • Loading branch information...
fontanon committed Aug 29, 2011
1 parent 097d233 commit d352884812546e544c866498f9b288759c4bbe41
Showing with 4 additions and 4 deletions.
  1. +4 −4 udev-discover.in
View
@@ -458,10 +458,10 @@ class UDevDiscoverGUI(GConfStore):
device = self.device_finder.get_devices_tree()[row[PATH_COL]]
title = '<b>'+device.nice_label+'</b>'
if hasattr(device, 'vendor_name'):
title += '\n<i>%s</i>' % device.vendor_name
if hasattr(device, 'model_name'):
title += '\n<i>%s</i>' % device.model_name
if hasattr(device, 'vendor_name') and device.vendor_name:
title += '\n<i>%s</i>' % device.vendor_name.decode('UTF-8')
if hasattr(device, 'model_name') and device.model_name:
title += '\n<i>%s</i>' % device.model_name.decode('UTF-8')
self.devicename_label.set_label(title)
desc = '\n'.join([': '.join(('<b>'+key.capitalize()+'</b>',

0 comments on commit d352884

Please sign in to comment.