Skip to content

Instantly share code, notes, and snippets.

@benjamin-dk
Created September 19, 2016 09:42
Show Gist options
  • Save benjamin-dk/b6ad9116254689fd59ee1f05bc5322cf to your computer and use it in GitHub Desktop.
Save benjamin-dk/b6ad9116254689fd59ee1f05bc5322cf to your computer and use it in GitHub Desktop.
Fix perl locale issue on ubuntu 14.04
#!/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