-
-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'en_US.UTF-8' locale error in Termux #507
Comments
Please check that the locale exists in the system. What are the results of the following commands? $ locale
$ locale -a | grep en_US I started to check the locale in commit 537c650 since broken system locales turned out to cause problems. |
|
No, I didn't mean |
|
If you want to search the package that provides the command $ pkg install apt-file
$ apt-file search /locale | grep 'locale$' However, it turned out no package provides the command I confirmed the problem in my Android using Termux. Surprisingly, it seems the I found another thread that seems to imply that one can set up a locale in a Termux environment: The first thread talked about
|
I'll later investigate the impact and fix the relevant parts, which can be affected by the non-working |
If I can help Termux doesn't include the |
Thanks for the information.
However, for some specific operations,
|
I've again searched in Termux organization and found the following comment from 2022: The issue termux/termux-packages#5845 was made in 2020, so they might have updated the support for the C locale after that. However, it seems strange that the |
So there is still an issue with The content of the error message "The locale 'en_US.UTF-8' (LC_CTYPE) seems broken" is actually wrong in Termux. The code to detect the current locale support ( |
Specifically, Termux produces "1" instead of the expected "3" with the following command, which is wrong. $ (LC_CTYPE=C; a=$'\xE3\x81\x82'; echo "${#a}")
3 |
The current status of the locale support by Termux is really unclear, so I raised a discussion at termux/termux-packages#23010. |
I think I cannot help more. You know more that me in locales (not that I know a lot: Termux doesn't use glibc) |
I've got some strange news, in Termux I have setup GLIBC to do some operation: grun -s
LANG=en_US.UTF-8 $0 Does not show any error from |
I'm not familiar with Termux. Could you explain it step by step? I seem to have been able to install a glibc-based system by |
In Termux you can consider that the root is in |
|
OK, Thanks. I could generate |
Sorry, I actually generated |
Normally |
I only have |
Android uses Bionic libc, GLIBC packages are non native to Android, so by default each packages uses Bionic. We have to enable GLIBC to make locales working, what does |
ble version: 0.4.0-devel4+32f290d
Bash version: 5.2.32(1)-release (aarch64-unknown-linux-android)
ble.sh: The locale 'en_US.UTF-8' (LC_CTYPE) seems broken. Please check that the locale exists in the system.
The text was updated successfully, but these errors were encountered: