From d352884812546e544c866498f9b288759c4bbe41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20F=C3=A9lix=20Onta=C3=B1=C3=B3n?= Date: Mon, 29 Aug 2011 21:00:34 +0200 Subject: [PATCH] [s][ui] Bugfix lp:832851 dealing with non-ASCII names --- udev-discover.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/udev-discover.in b/udev-discover.in index fec8b4e..6d194fc 100644 --- a/udev-discover.in +++ b/udev-discover.in @@ -458,10 +458,10 @@ class UDevDiscoverGUI(GConfStore): device = self.device_finder.get_devices_tree()[row[PATH_COL]] title = ''+device.nice_label+'' - if hasattr(device, 'vendor_name'): - title += '\n%s' % device.vendor_name - if hasattr(device, 'model_name'): - title += '\n%s' % device.model_name + if hasattr(device, 'vendor_name') and device.vendor_name: + title += '\n%s' % device.vendor_name.decode('UTF-8') + if hasattr(device, 'model_name') and device.model_name: + title += '\n%s' % device.model_name.decode('UTF-8') self.devicename_label.set_label(title) desc = '\n'.join([': '.join((''+key.capitalize()+'',