<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername"></b> <span dir="ltr">&lt;<a href="mailto:qt-bugs@trolltech.com">qt-bugs@trolltech.com</a>&gt;</span><br>Date: 2009/10/26<br>

Subject: Re: [Issue N261909] Qt&#39;s QTemporaryFile isn&#39;t unicode-safe on windows<br>To: <a href="mailto:andriusmao@gmail.com">andriusmao@gmail.com</a><br>Cc: <a href="mailto:qt-bugs@trolltech.com">qt-bugs@trolltech.com</a><br>

<br><br>Hi Andrius,<br>
<br>
This bug report will be moved to the following new address:<br>
<br>
<a href="http://bugreports.qt.nokia.com/browse/QTBUG-4796" target="_blank">http://bugreports.qt.nokia.com/browse/QTBUG-4796</a><br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Friday, 18. Sep 2009 21:32 <a href="mailto:andriusmao@gmail.com">andriusmao@gmail.com</a> wrote:<br>
&gt; Name<br>
&gt; Andrius<br>
&gt; Your E-Mail Address<br>
&gt; <a href="mailto:andriusmao@gmail.com">andriusmao@gmail.com</a><br>
&gt; Product<br>
&gt; Qt<br>
&gt; Function<br>
&gt; TextHandling<br>
&gt; Version<br>
&gt; 4.6.0-tp<br>
&gt; Platform<br>
&gt; Windows Vista<br>
&gt; Platform details<br>
&gt; Compilers<br>
&gt; GCC<br>
&gt; Compiler details<br>
&gt; Subject<br>
&gt; Qt&#39;s QTemporaryFile isn&#39;t unicode-safe on windows<br>
&gt; Steps to reproduce / test case<br>
&gt; Some KDE users reported problems when using a MS Windows account name<br>
&gt; with non-latin characters (japanese, chinese etc.)<br>
&gt;<br>
&gt; Christian Ehrlicher pointed in the mailing list:<br>
&gt; ---<br>
&gt; One big reason why it doesn&#39;t work is because Qt&#39;s QTemporaryFile<br>
&gt; isn&#39;t<br>
&gt; unicode-safe on windows. See qtemporaryfile.cpp:352<br>
&gt;<br>
&gt; char *filename = qstrdup(qfilename.toLocal8Bit());<br>
&gt;<br>
&gt; This doesn&#39;t work when the locale doesn&#39;t contain the used characters.<br>
&gt; And since we&#39;re storing all KTemporaryFile&#39;s in the user home dir this<br>
&gt; is a very big problem...<br>
&gt; ---<br>
&gt; More information<br>
&gt;<br>
<br>
<br>
Kind regards,<br>
<br>
Stian Sandvik Thomassen, QA Engineer<br>
Qt Development Frameworks, Nokia<br>
</div></div></div><br>