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

View: New views
1 Messages — Rating Filter:   Alert me  

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

by Andrius da Costa Ribas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



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


Hi Andrius,

This bug report will be moved to the following new address:

http://bugreports.qt.nokia.com/browse/QTBUG-4796



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


_______________________________________________
Kde-windows mailing list
Kde-windows@...
https://mail.kde.org/mailman/listinfo/kde-windows