From: <pyu...@li...> - 2010-02-03 10:42:27
|
Hi Wander, I have refreshed the patch so it applies against svn 0.x branch. Cheers, Tormod On Wed, Feb 3, 2010 at 1:47 AM, <pyu...@li...> wrote: > Hello Tormod, > > Would you mind making the patch for latest svn code? > Thank you very much for you contribution. > > Wander > > 2010/2/3 <pyu...@li...>: >> 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 >> |