tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Subject: c++ vs locales

The bug can be triggered by this small program. It works if called as
LC_CTYPE="C" ./a.out and fails with LC_CTYPE set to any other value.

#include <locale>
#include <cstdlib>
#include <iostream>

int main () {
    std::wcout << "user locale is: " << std::locale("").name().c_str() 
               << std::endl ; 

Using  LC_CTYPE="C" cclive  works as
well, although yielding another error:

Checking ... ......... libquvi: error: no support:

cclive is using boost-libs and there were some patches avoiding the
locale error in .


Home | Main Index | Thread Index | Old Index