summaryrefslogtreecommitdiff
path: root/libunwindstack/tests/MemoryFileTest.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2019-04-25 13:10:30 -0700
committerTom Cherry <tomcherry@google.com>2019-04-29 09:14:37 -0700
commit915898489464158524a30881154881384d5b0ba0 (patch)
tree7802a754a857e0589d2140e1d90e2ad05ca5be6d /libunwindstack/tests/MemoryFileTest.cpp
parent81f5424560c0a67155fd2f0c94ce2e79f9c6dc20 (diff)
liblog: display valid utf8 characters with 'printable' log format
This started as a change to use mbrtowc() instead of utf8_character_length() as mbrtowc() does everything that utf8_character_length() intends to do, but is a libc function. The change was further intended to add unit tests to ensure that these functions operate as intended. It turns out that utf8_character_length() returned an error for the utf8 characters that I tested, so this also has the side effect of allowing valid utf8 characters to be printed in the 'printable' log format, which was the original intention. Also, print the binary data as hex instead of octal, since it is a more suitable choice. Test: new unit tests, existing unit tests, logcat -v printable Change-Id: I4cc95aee81519411ef47892ca74eb31117c972d2
Diffstat (limited to 'libunwindstack/tests/MemoryFileTest.cpp')
0 files changed, 0 insertions, 0 deletions