M
meskio
I get a runtime_error while porting a program to Mac OSX 10.6 with
std::locale.
#include <locale>
int main ( int argc, char *argv [] ) {
std::locale mylocale("");
return 0;
}
Returns an error for any locale diferent than "C":
bash-3.2$ LANG=es_ES.UTF-8 ./locale
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
Abort trap
Is that a Mac OSX bug? Am I doing something wrong?
std::locale.
#include <locale>
int main ( int argc, char *argv [] ) {
std::locale mylocale("");
return 0;
}
Returns an error for any locale diferent than "C":
bash-3.2$ LANG=es_ES.UTF-8 ./locale
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
Abort trap
Is that a Mac OSX bug? Am I doing something wrong?