Write log output in UTF-8.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-11-01 10:20:07 +02:00
parent 0ef92f9cba
commit d1e3531247

View file

@ -83,6 +83,7 @@ static const auto V_UNUSED V_EX_CONFIG = 78; /*Something was found in an un
inline QTextStream& vStdErr()
{
static QTextStream ts( stderr );
ts.setCodec("UTF-8");
ts.flush();
return ts;
}
@ -91,6 +92,7 @@ inline QTextStream& vStdErr()
inline QTextStream& vStdOut()
{
static QTextStream ts( stdout );
ts.setCodec("UTF-8");
ts.flush();
return ts;
}