0

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)

C.UTF-8 and en.UTF-8 gives the same result. There isn't the locale command.

I could use C-v before a Unicode character to input only the first byte of that character, where it is shown as \xxx octals.

What's the minimal change I could use to make it support inputting UTF-8 characters?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.