Names should be treated properly - not all are US-ASCII

Bug #832851 reported by Marcin Juszkiewicz
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
udev-discover
Fix Released
Low
J. Félix Ontañón
0.2
Fix Released
Low
J. Félix Ontañón

Bug Description

Traceback (most recent call last):
  File "/usr/bin/udev-discover", line 464, in devices_tv_cursor_changed_cb
    title += '\n<i>%s</i>' % device.model_name
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 11: ordinal not in range(128)

E: HID_NAME=Microsoft Natural® Ergonomic Keyboard 4000
E: NAME="Microsoft Natural® Ergonomic Keyboard 4000"

Tags: ui
Revision history for this message
J. Félix Ontañón (fontanon) wrote :

I confirm this bug after some tests. This should be fixed.

Changed in udev-discover:
status: New → Incomplete
status: Incomplete → Confirmed
importance: Undecided → Low
assignee: nobody → J. Félix Ontañón (fontanon)
tags: added: core
tags: added: ui
removed: core
Revision history for this message
J. Félix Ontañón (fontanon) wrote :
Changed in udev-discover:
status: Confirmed → In Progress
Revision history for this message
J. Félix Ontañón (fontanon) wrote :

Due to the fact that i've no device with non-ASCII names I can't test the bugfix for myself.
Would you be so nice to try the patch and tell me if this works for you?

If this works for you i'll merge the changes on master branch.

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

As you can see fix works :)

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

Grrrreat! Merged into master, closing bug

Changed in udev-discover:
status: In Progress → Fix Committed
Revision history for this message
Lorenzo Gil Sanchez (lgs) wrote :

Let me propose an alternate fix. GTK+ widgets can deal with unicode with no problem so I think it's better to use unicode as much as possible and let GTK+ do the encoding as late as possible.

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

Other bug subscribers

Bug attachments

Remote bug watches

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