Skip to content

Instantly share code, notes, and snippets.

@fabianoflorentino
Forked from nicks9188/LC_CTYPE.md
Created October 9, 2020 14:44
Show Gist options
  • Save fabianoflorentino/f4496dccfef1a324653b1c2d7fcbf26e to your computer and use it in GitHub Desktop.
Save fabianoflorentino/f4496dccfef1a324653b1c2d7fcbf26e 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

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