commit | 0fe5649e4af2bb0c6d64c25365b684cad9202ef1 | [log] [tgz] |
---|---|---|
author | Andrew Chant <achant@google.com> | Thu Dec 07 16:51:49 2017 -0800 |
committer | Andrew Chant <achant@google.com> | Mon Dec 18 11:36:46 2017 -0800 |
tree | 3c50c6c496129d5fb3661c68cd323055244ea89f | |
parent | e3669a46f6da47dcacc4e6c1f98b6fe8524a85f2 [diff] |
usblib: usb_device_get_string decoding fixes. usb_device_get_string converts incoming ucs-2 text to ascii by truncating the upper byte of each character. This is error prone. This patch introduces usb_device_get_string_ucs2 to access raw USB string descriptors, as well as changes usb_device_get_string to replace any non ascii character with '?'. Bug: 70163357 Change-Id: If8f98fee4be6ea75dc0f7ce7beba7fd7b6aabf88 Test: Connected & disconnected a NuForceDAC.