diff options
author | Andrew Chant <achant@google.com> | 2017-12-07 16:51:49 -0800 |
---|---|---|
committer | Andrew Chant <achant@google.com> | 2017-12-18 11:36:46 -0800 |
commit | 169742e2dbde46efeccc93378960c0344da8c99c (patch) | |
tree | 3c50c6c496129d5fb3661c68cd323055244ea89f /debuggerd/handler/debuggerd_handler.cpp | |
parent | 588f5ba383147c742f7ae001f5861a343798727c (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.
Diffstat (limited to 'debuggerd/handler/debuggerd_handler.cpp')
0 files changed, 0 insertions, 0 deletions