<div dir="ltr">My first instinct was suggesting MS to support Unicode in their console... but then I tried to reproduce the described issue on OS X and succeeded.<div><br></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">qDebug</span><span style="color:rgb(0,0,0)">()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"this</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">is</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">сообщение</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">на</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">русском"</span><span style="color:rgb(0,0,0)">;</span></pre></div><div>which I'd expect to be treated like a byte array, gives me</div><div><span style="font-family:monospace;white-space:pre">this is сообщение на русском</span><br></div><div><br></div><div>though</div><div>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">qDebug</span><span style="color:rgb(0,0,0)">()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">QString</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(0,0,0)">fromUtf8</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,128,0)">"this</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">is</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">сообщение</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">на</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">русском"</span><span style="color:rgb(0,0,0)">);</span></pre></div><div>gives me<br></div><div><div>







<p class=""><span class="">"this is \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u043D\u0430 \u0440\u0443\u0441\u0441\u043A\u043E\u043C"</span></p></div><div>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre><div><div class="gmail_extra"><div><div class="gmail_signature">A bit unexpected, isn't it?</div><div class="gmail_signature"><br></div><div class="gmail_signature"><br></div><div class="gmail_signature">Regards,<br>Konstantin</div></div>
<br><div class="gmail_quote">2015-07-27 12:20 GMT+03:00 Marc Mutz <span dir="ltr"><<a href="mailto:marc.mutz@kdab.com" target="_blank">marc.mutz@kdab.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Monday 27 July 2015 00:25:18 NIkolai Marchenko wrote:<br>
> (I am not entirely sure why I haven't received at least a notification of<br>
> why this post has not appeared the first time I tried to send it, so here<br>
> we go again. Btw, it was Thiago Macieira himself who actually suggested I<br>
> mail this list)<br>
><br>
><br>
> Hi! We (Russian Qt community) have a situation we could not resolve with<br>
> Thiago Macieira in bug tracker, so have to ask for Chief Maintainer's<br>
> attention.<br>
> The bug in question is there:<br>
> <a href="https://bugreports.qt.io/browse/QTBUG-47316" rel="noreferrer" target="_blank">https://bugreports.qt.io/browse/QTBUG-47316</a><br>
><br>
</span><span class="">> In version 5.5 Thiago Macieira introduced a compatibility break with older<br>
> qt versions.<br>
> This break has come in the form of completely changing the way qDebug()<br>
> prints non-english characters to console.<br>
<br>
</span>I don't think qDebug() should guarantee any output, but your position might<br>
become a relevant one if logging output also changed. That is something that<br>
we shoudn't change, and since IIIRC, qDebug and logging use the same stream,<br>
you may have a point here.<br>
<br>
Just my 2ct,<br>
Marc<br>
<span class=""><font color="#888888"><br>
--<br>
Marc Mutz <<a href="mailto:marc.mutz@kdab.com">marc.mutz@kdab.com</a>> | Senior Software Engineer<br>
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company<br>
Tel: +49-30-521325470<br>
KDAB - The Qt Experts<br>
_______________________________________________<br>
Development mailing list<br>
<a href="mailto:Development@qt-project.org">Development@qt-project.org</a><br>
<a href="http://lists.qt-project.org/mailman/listinfo/development" rel="noreferrer" target="_blank">http://lists.qt-project.org/mailman/listinfo/development</a><br>
</font></span></blockquote></div><br></div></div></div></div></div>