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 http://youtube.de/some/valid/url  works as
well, although yielding another error:

Checking ... ......... libquvi: error: no support: 
http://www.youtube.com/some/valid/url

cclive is using boost-libs and there were some patches avoiding the
locale error in https://svn.boost.org/trac/boost/ticket/5289 .

Kai-Uwe


Home | Main Index | Thread Index | Old Index