When you running MATLAB, if you encountered an error like this:
terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid
It is easy to solve just by setting environmental variable LC_ALL="en_US.utf8"
bash: export LC_ALL="en_US.utf8"
csh: setenv LC_ALL "en_US.utf8"
It is better to add this to your bash or csh profile.
e.g.
.bshrc
.cshrc
.bash_profile
did not worked for me
ReplyDelete