Android's bionic libc now respects setlocale(), so mbtool's previous setlocale(LC_ALL, "C") call prevented UTF-8 encodings from working when creating or extracting backups. The locale argument has been changed to "" so that the encoding specified by the standard environment variables is used instead. If the environment variables are unset, bionic defaults to UTF-8.
This PR also adds a test to ensure that this doesn't break in the future.
Android's bionic libc now respects setlocale(), so mbtool's previous
setlocale(LC_ALL, "C")
call prevented UTF-8 encodings from working when creating or extracting backups. The locale argument has been changed to""
so that the encoding specified by the standard environment variables is used instead. If the environment variables are unset, bionic defaults toUTF-8
.This PR also adds a test to ensure that this doesn't break in the future.
Fixes #1265