Perl is not something I have used knowingly for a long time, but of course a lot of server tools use it behind the scenes.
Just the other day I needed to quickly set up a temporary test server, but apparently I forgot something. On the command line I started seeing error messages, telling me the Perl’s locale was not set correctly:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "nl_NL.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
This is easy to fix by using locale-gen
to compile a list of locale definition files:
locale-gen en_US en_US.UTF-8 nl_NL nl_NL.UTF-8
Note: in this case I also included the custom locales for nl_NL
.
And then to finish it off:
dpkg-reconfigure locales