I have installed the bash binary into an Android device (with
sh as the filename), using an app that I don't fully trust.
It interprets non-ASCII Unicode characters as random control codes, or has no effect when I input them in the bash prompt through
adb. The default
mksh works fine. I could also workaround using
read;eval $REPLY. But is there a way to make it work as it should?
export LANG=en_US.UTF-8 has no effect, and
export LC_ALL=en_US.UTF-8 gives:
sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
en.UTF-8 gives the same result. There isn't the
I could use
C-v before a Unicode character to input only the first byte of that character, where it is shown as
What's the minimal change I could use to make it support inputting UTF-8 characters?