9158984894
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 |
||
---|---|---|
.. | ||
Android.bp | ||
AndroidTest.xml | ||
libc_test.cpp | ||
liblog_benchmark.cpp | ||
liblog_test.cpp | ||
liblog_test_default.cpp | ||
liblog_test_stderr.cpp | ||
log_id_test.cpp | ||
log_radio_test.cpp | ||
log_read_test.cpp | ||
log_system_test.cpp | ||
log_time_test.cpp | ||
log_wrap_test.cpp | ||
logprint_test.cpp |