Skip to content

Instantly share code, notes, and snippets.

@ygorluiz
Forked from nicks9188/LC_CTYPE.md
Created August 10, 2024 17:29
Show Gist options
  • Select an option

  • Save ygorluiz/bfde0db984b5711a373585ab5babcac9 to your computer and use it in GitHub Desktop.

Select an option

Save ygorluiz/bfde0db984b5711a373585ab5babcac9 to your computer and use it in GitHub Desktop.
Centos warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
  1. vi /etc/environment

add these lines...

LANG=en_US.utf-8
LC_ALL=en_US.utf-8

Alternatively,

  1. Create locale file manually: localedef -i en_US -f UTF-8 en_US.UTF-8

Explained here

@ygorluiz
Copy link
Author

This works like a charm!

Create locale file manually:

localedef -i en_US -f UTF-8 en_US.UTF-8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment