You are not logged in.

#1 2012-11-09 13:36:44

From: Athens, Greece
Registered: 2008-10-29
Posts: 241

Weird issue with QTextStream and non-latin console input/output

I work on a console Qt application and I'm using stdin/stdout on my main.cpp to test some classes and functions. On OS X, I can feed non-latin input and get non-latin output without issues. However, on Arch I have issues. Here is a very simple example:

std::cout << "Enter a string: " << std::endl;
QTextStream stream1(stdin);
QString s1 = stream1.readLine();

When the user enters a non-latin string, this string (s1) is not received by my functions. This snippet works fine on OS X though.

Any clues what's going on?


Last edited by panosk (2012-11-09 13:42:50)


Board footer

Powered by FluxBB