Jump to content

problem with locale after compilation


Recommended Posts

Hello. I'm trying to compile the game and I was successful. But the problem is that I can't run it because of a locale problem.

My machine runs a 64-bit linux 10.04. I get this exact problem:

../../../source/pch/test/../../../source/ps/XML/tests/test_Xeromyces.h:41: Error: Test failed: locale::facet::_S_create_c_locale name not valid

test_dbg: /usr/include/boost/smart_ptr/shared_ptr.hpp:418: T* boost::shared_ptr< <template-parameter-1-1> >::operator->() const [with T = RealDirectory]: Assertion `px != 0' failed.

It's a locale problem I think. The locale is not valid. Any workaround? I need to run the game in order to create code for it! (y)

Link to comment
Share on other sites

Hmm, sounds like it's possibly a system configuration problem - Boost wants to know the locale so it can handle filesystem paths properly, but the C++ locale stuff doesn't like your locale. It may be this problem (add the LANG you use to /var/lib/locales/supported.d/local, run sudo dpkg-reconfigure locales).

I think we can't really avoid the locale issues (it's necessary for loading paths as Unicode) so perhaps we should just warn when there's a problem. See #495.

Link to comment
Share on other sites

  • 3 years later...

Found the solution for this problem:

You need to use English locale settings.

To check which language is set, use the "locale" command in the terminal.

If this is your output, you shouldn't have any troubles anymore:


LANG=en_US.UTF-8
LANGUAGE=en
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=

Using any other language will cause troubles.

I use lubuntu 12.04.

Changing the language was done for me by setting the default language to the system to "English" and changing the additional language stuff to english as well (currencies, date time, etc).

To the programmers I'd suggest adding support for multi language locales.

Greetings and best wishes ~

Link to comment
Share on other sites

That isn't a solution...

Also posting the output of locale when you get errors when starting the game would be nice (also the errors the game throws (start it in a terminal to get those) to help with fixing this.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...