QTextStream and non-latin console input/output



  • Hello,

    I work on a console application and in my main.cpp I use stdin/stdout to test some classes and functions. On OS X, everything works fine and I can feed and print non-latin characters. Today I wanted to continue work on my Linux machine, and to my surprise non-latin input and output doesn't work.

    For example

    @
    QTextStream cout1(stdout);
    cout1 << "ΚΔΟΟΕΚΔ" << endl;
    @

    This prints nothing.

    Using std::cout prints non-latin characters just fine.

    Any ideas why on OS X it works fine but not on Linux?

    Thanks in advance.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.