tech-toolchain archive

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

Re: Subject: c++ vs locales



On Wed, Dec 11, 2013 at 08:17:16PM +0100, Kai-Uwe Eckhardt wrote:
> 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 ; 
> }

Thanks!

> 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

Well, of course, since /some/valid/url is not a 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 .

But that one is marked as fixed/closed. Is there a newer one, like the
last comment requests?
 Thomas


Home | Main Index | Thread Index | Old Index