MantisBT - VCMI
View Issue Details
0002785VCMIOtherpublic2017-09-07 19:432023-03-03 10:55
SXX 
kambala 
normalminoralways
resolvedfixed 
Linux / Android
0.99 
 
0002785: Avoid crash when LC_ALL / LANG is not set
I working on Linux snap package and VCMI crash with "locale::facet::_S_create_c_locale name not valid" if encoding not set so I have to manually set "LC_ALL: C.UTF-8" to avoid crash.

Also Android code also have following workaround in CMT:
#ifdef VCMI_ANDROID
    // boost will crash without this
    setenv("LANG", "C", 1);
#endif


I guess there is good chance that we can avoid all of this by setting some options to our boost::locale usage.
No tags attached.
Issue History
2017-09-07 19:43SXXNew Issue
2023-03-01 11:01kambalaNote Added: 0008488
2023-03-01 11:01kambalaStatusnew => resolved
2023-03-01 11:01kambalaResolutionopen => fixed
2023-03-01 11:01kambalaAssigned To => kambala

Notes
(0008488)
kambala   
2023-03-01 11:01   
apparently got fixed by something, at least we had no Linux / flatpak reports about this