Fwd: [Issue N261909] Qt's QTemporaryFile isn't unicode-safe on windows

Andrius da Costa Ribas andriusmao at gmail.com
Fri Oct 9 03:40:02 CEST 2009


FYI [Wow, I've only received the feedback today!! ( bug report was sent on
September 18 )]

---------- Forwarded message ----------
From: <qt-bugs at trolltech.com>
Date: 2009/10/8
Subject: Re: [Issue N261909] Qt's QTemporaryFile isn't unicode-safe on
windows
To: andriusmao at gmail.com
Cc: qt-bugs at trolltech.com


Hi Andrius,

Bug report created:

http://qt.nokia.com/developer/task-tracker/index_html?method=entry&id=261944


On Friday, 18. Sep 2009 21:32 andriusmao at gmail.com wrote:
> Name
> Andrius
> Your E-Mail Address
> andriusmao at gmail.com
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-windows/attachments/20091008/71713282/attachment.htm 


More information about the Kde-windows mailing list