• TeamSpeak has reported a vulnerability in it's client that can potentially lead to RCE. A new version has been released that fixes it. So please update the client in your bot installation as soon as possible as well. Click here for more information.
  • If you need help or want to discuss things, you now can also join us on our Discord Server!

I get an error like "what(): locale::facet::_S_create_c_locale name not valid". What do I do?

Answer

Example Error:
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid

On some minimal installs of Debian or other distributions, the locales are not completely installed / built.
This error can be corrected as follow (run as root):

Debian:
Code:
$ apt-get install locales && dpkg-reconfigure locales
Ubuntu:
Code:
$ apt-get install locales
$ locale-gen en_US.UTF-8
$ update-locale LANG=en_US.UTF-8
$ reboot
Top