We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On some OS (especially on OpenBSD), locale are defined only via LC_CTYPE (export LC_CTYPE=en_US.UTF-8) => see https://www.openbsd.org/faq/faq10.html#locales
LC_CTYPE
export LC_CTYPE=en_US.UTF-8
With this configuration, no UTF-8 locale is detected at start.
Reproduction
LC_CTYPE=en_US.UTF-8
$ unset LANG $ unset LC_ALL $ locale LANG= LC_COLLATE="C" LC_CTYPE=en_US.UTF-8 LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_MESSAGES="C" LC_ALL=
btop
$ bin/btop ERROR: No UTF-8 locale detected! Use --utf-force argument to force start if you're sure your terminal can handle it.
Expected behavior
UTF-8 locale is checked in src/btop.cpp (line 915...). In line 923, I propose to check also LC_CTYPE variable value for UTF-8:
src/btop.cpp
for (const auto loc_env : array{"LANG", "LC_ALL"})
Info:
The text was updated successfully, but these errors were encountered:
Check LC_CTYPE to set UTF-8 locale
f2ead3d
Fix aristocratos#752 Signed-off-by: Laurent Cheylus <foxy@free.fr>
aristocratos
Successfully merging a pull request may close this issue.
On some OS (especially on OpenBSD), locale are defined only via
LC_CTYPE
(export LC_CTYPE=en_US.UTF-8
) => see https://www.openbsd.org/faq/faq10.html#localesWith this configuration, no UTF-8 locale is detected at start.
Reproduction
LC_CTYPE=en_US.UTF-8
for localebtop
:Expected behavior
UTF-8 locale is checked in
src/btop.cpp
(line 915...). In line 923, I propose to check alsoLC_CTYPE
variable value for UTF-8:for (const auto loc_env : array{"LANG", "LC_ALL"})
Info:
The text was updated successfully, but these errors were encountered: