-
-
Save aalmenar/9949fcfa5efd5beadcfb032fd153cbee to your computer and use it in GitHub Desktop.
OSX Terminal Fix - perl: warning: Setting locale failed.
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
When running certain commands like ssh or git within Terminal on OSX you may get notices like the one below, which can be annoying. | |
perl: warning: Setting locale failed. | |
perl: warning: Please check that your locale settings: | |
LANGUAGE = (unset), | |
LC_ALL = (unset), | |
LANG = "en_US.UTF-8" | |
are supported and installed on your system. | |
perl: warning: Falling back to the standard locale ("C"). | |
The fix is simple: | |
Adding the following lines to ~/.bash_profile on my your local machine, the warning should go away: | |
export LC_CTYPE=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
Hope this helps someone rid themselves of annoyances. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment