-
Star
(106)
You must be signed in to star a gist -
Fork
(13)
You must be signed in to fork a gist
-
-
Save ibrahimlawal/bfec7092cb64d46d8f9d1fd2c0c3d9c8 to your computer and use it in GitHub Desktop.
Centos warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vi /etc/environment | |
add these lines... | |
LANG=en_US.utf-8 | |
LC_ALL=en_US.utf-8 |
Cheers m8, works like a charm!
2022 and still works on Centos 7 :-) consider to restart terminal so that new locale set takes effect
Sometimes it can only be solved by installing glibc-langpack-en
package.
Thanks!
Recently, my glibc-langpack-en
got updated to version 2.40-21
; at terminal login I get six times in a row the message -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
.
After applying the suggested fix, I get the message only three times. Yayy!
I am still trying to understand where those three are coming from and how to get rid of them. Any suggestion?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you
by Rabii