Tiny Core Linux
Tiny Core Extensions => TCE Bugs => Topic started by: jls on November 08, 2010, 05:14:43 PM
-
tc@box1:~$ qbittorrent
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
Aborted
tc@box1:~$
-
this is not a problem with qbittorrent it looks to be a problem with libstdc++
see this simple program gives exactly the same error for all locales other than "C" and "POSIX"
program creates a locale object with system default preference and prints the name of it
#include <iostream>
#include <locale>
using namespace std;
int main()
{
locale loc("");
cout << "System locale: " << loc.name() << endl;
return 0;
}
output of test program
tc@box:~/Desktop/c++_locale_test/bin/Debug$ locale -a
C
POSIX
it_IT
it_IT.iso88591
it_IT.iso885915@euro
it_IT@euro
tc@box:~/Desktop/c++_locale_test/bin/Debug$ echo $LANG
C
tc@box:~/Desktop/c++_locale_test/bin/Debug$ ./c\+\+_locale_test
System locale: C
tc@box:~/Desktop/c++_locale_test/bin/Debug$ export LANG=it_IT
tc@box:~/Desktop/c++_locale_test/bin/Debug$ ./c\+\+_locale_test
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
Aborted
here is a similar problem which states in the end that libstdc++ must be compiled with --enable-clocale=gnu i think
http://groups.google.com/group/gnu.gcc.help/browse_thread/thread/99d874aed6b46fdd?pli=1 (http://groups.google.com/group/gnu.gcc.help/browse_thread/thread/99d874aed6b46fdd?pli=1)
-
As per my notes, it was compiled with --enable-clocale=gnu...
-
I have same problem