Skip to content

Instantly share code, notes, and snippets.

@sn1p3r46
Last active November 18, 2017 00:43
Show Gist options
  • Save sn1p3r46/dd2af46e08852146de81160a60217a0b to your computer and use it in GitHub Desktop.
Save sn1p3r46/dd2af46e08852146de81160a60217a0b to your computer and use it in GitHub Desktop.
Raspberry Pi debian locales fix

Simple list of commands useful to fix locales on raspberry pi. In fact after a fresh install often perl is complaining about misconfigured locales. \

alternatively one can fill the /etc/default/locale with

LANG=en_US.UTF-8
LC_TIME=it_IT.UTF-8
LANGUAGE=en_US:en
LC_ALL=en_US.UTF-8

and then fire the sudo dpkg-reconfigure locales command.

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment