On Friday, 18. Sep 2009 21:32
andriusmao@... wrote:
> Name
> Andrius
> Your E-Mail Address
>
andriusmao@...
> Product
> Qt
> Function
> TextHandling
> Version
> 4.6.0-tp
> Platform
> Windows Vista
> Platform details
> Compilers
> GCC
> Compiler details
> Subject
> Qt's QTemporaryFile isn't unicode-safe on windows
> Steps to reproduce / test case
> Some KDE users reported problems when using a MS Windows account name
> with non-latin characters (japanese, chinese etc.)
>
> Christian Ehrlicher pointed in the mailing list:
> ---
> One big reason why it doesn't work is because Qt's QTemporaryFile
> isn't
> unicode-safe on windows. See qtemporaryfile.cpp:352
>
> char *filename = qstrdup(qfilename.toLocal8Bit());
>
> This doesn't work when the locale doesn't contain the used characters.
> And since we're storing all KTemporaryFile's in the user home dir this
> is a very big problem...
> ---
> More information
>
Kind regards,
Stian Sandvik Thomassen, QA Engineer
Qt Development Frameworks, Nokia