diff options
author | Andrew Chant <achant@google.com> | 2017-12-07 16:51:49 -0800 |
---|---|---|
committer | Andrew Chant <achant@google.com> | 2017-12-19 22:20:51 +0000 |
commit | 8ea8101b0403a13ca78b0c82f2da047279c0a9d0 (patch) | |
tree | 886c0814449d61f7b496dcd9a1de28d635efa263 /debuggerd/handler/debuggerd_handler.cpp | |
parent | 84de4c0a892c922a79143248f00f2965c82b0903 (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
Merged-In: If8f98fee4be6ea75dc0f7ce7beba7fd7b6aabf88
Test: Connected & disconnected a NuForceDAC.
Diffstat (limited to 'debuggerd/handler/debuggerd_handler.cpp')
0 files changed, 0 insertions, 0 deletions