Comment 27 for bug 334800

Krzysztof Kosinski (tweenk) wrote :

No, that's not it. GDK explicitly converts from UTF-16 at gdk/win32/gdkinput-win32.c:410.

There is very useful information in bug 306322 (I'm not 100%it's a duplicate but it looks that way). I think this is caused by some device drivers reporting garbled names that contain things like \x03, \xf3 and the like. We need to escape the device name before storing it in prefs to fix this. Something very simple like g_strcanon() might work, since the conversion only has to work one way.