Skip to content

Instantly share code, notes, and snippets.

@benolee
Created August 11, 2014 20:50
Show Gist options
  • Save benolee/2aff310012d6f255553a to your computer and use it in GitHub Desktop.
Save benolee/2aff310012d6f255553a to your computer and use it in GitHub Desktop.
$ env | grep LC
LC_ALL=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
$ env | grep LANG
LANG=en_US.UTF-8
$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
$ sudo locale-gen en_US en_US.UTF-8
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Generating locales...
en_US.ISO-8859-1... done
en_US.UTF-8... done
Generation complete.
$ dpkg-reconfigure locales
/usr/sbin/dpkg-reconfigure must be run as root
$ sudo dpkg-reconfigure locales
Generating locales...
en_US.ISO-8859-1... up-to-date
en_US.UTF-8... up-to-date
Generation complete.
$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment