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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...