From: <pyu...@li...> - 2010-02-02 15:41:14
|
Hi, This is a patch for pyusb 0.4.1. Currently, getString(index, len, -1) returns a plain string, but when providing a langid like in getString(index, len, 0x409) it returns the raw string descriptor which then has to be converted into a plain string. The patch makes the latter case return a plain string like in the former case. The conversion is similar to the one done in the libusb-0.1 usb_get_string_simple() function. I tried to check how this is done in pyusb 1.x, but AFAICS the getString() method is not implemented there yet. Tormod |