Public bug reported:

Binary package hint: g++-4.3

Under Ubuntu 9.04, using g++-4.3, 4.2, or 4.1 (haven't tried earlier
releases) the following code

#include <iostream>

int main()
{
    std::wcerr << L"Hello, world!" << std::endl;

    std::cerr << "!dlrow ,olleH" << std::endl;
}

when compiled, will only output "Hello, world!", and the subsequent
string will not be output.

However,


#include <iostream>

int main()
{
    std::cerr << "Foobar" << std::endl;
    std::wcerr << L"Hello, world!" << std::endl;
    std::cerr << "!dlrow ,olleH" << std::endl;
}

works as expected, printing out all three strings.

** Affects: gcc-4.3 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
std::wcerr followed by std::cerr yields incorrect output
https://bugs.launchpad.net/bugs/426178
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to