@steeldriver is right, unsurprisingly. All you need to do is
LC_ALL=
to restore all your normal locale settings for the session.
Example:
$ export LC_ALL=C
$ locale
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
setting LC_ALL=
restores the original locale
settings
$ LC_ALL=
$ locale
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC=en_GB.UTF-8
LC_TIME=en_GB.UTF-8
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY=en_GB.UTF-8
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER=en_GB.UTF-8
LC_NAME=en_GB.UTF-8
LC_ADDRESS=en_GB.UTF-8
LC_TELEPHONE=en_GB.UTF-8
LC_MEASUREMENT=en_GB.UTF-8
LC_IDENTIFICATION=en_GB.UTF-8
LC_ALL=
LC_ALL=
? AFAIK it is typically unset by default - only if set, it overrides the individual locale variables such asLC_NUMERIC
,LC_MESSAGES
etc. – steeldriver Aug 05 '16 at 12:37LANGUAGE=en_US
– Gunnar Hjalmarsson Aug 05 '16 at 18:19nl_NL.UTF-8
- with an underscore, not dash. – Gunnar Hjalmarsson Aug 05 '16 at 20:29export LC_ALL=C
to changelocale
the first time – Zanna Aug 05 '16 at 21:09