Created
September 19, 2016 09:42
-
-
Save benjamin-dk/b6ad9116254689fd59ee1f05bc5322cf to your computer and use it in GitHub Desktop.
Fix perl locale issue on ubuntu 14.04
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
#!/bin/bash | |
# credits: https://jee-appy.blogspot.dk/2016/02/set-locale-on-ubuntu-permanent-solution.html | |
# Set locales in /etc/default/locale file | |
echo "Setting locale..." | |
echo "# Locale settings | |
export LANGUAGE=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8">>~/.bash_profile | |
locale-gen en_US.UTF-8 | |
sudo dpkg-reconfigure locales | |
source ~/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment