Germán Diago Posted April 19, 2010 Report Share Posted April 19, 2010 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 validtest_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! Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted April 19, 2010 Report Share Posted April 19, 2010 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. Quote Link to comment Share on other sites More sharing options...
Wuff Posted June 12, 2013 Report Share Posted June 12, 2013 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-8LANGUAGE=enLC_CTYPE="en_US.UTF-8"LC_NUMERIC=en_US.UTF-8LC_TIME=en_US.UTF-8LC_COLLATE="en_US.UTF-8"LC_MONETARY=en_US.UTF-8LC_MESSAGES="en_US.UTF-8"LC_PAPER=en_US.UTF-8LC_NAME=en_US.UTF-8LC_ADDRESS=en_US.UTF-8LC_TELEPHONE=en_US.UTF-8LC_MEASUREMENT=en_US.UTF-8LC_IDENTIFICATION=en_US.UTF-8LC_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 ~ Quote Link to comment Share on other sites More sharing options...
leper Posted June 12, 2013 Report Share Posted June 12, 2013 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.