wchar_t / QString::fromWCharArray bug

Martin Koller kollix at aon.at
Sun Oct 21 10:52:50 UTC 2012


On Saturday, 20. October 2012 22:49:12 Martin Koller wrote:
> Hi all,
> 
> I just wanted to inform you that the Qt-Android port needs some fix in
> QString::fromWCharArray() and toWCharArray() methods, because
> on Android wchar_t == char (for the simplicity of bionic), which makes the checks
> in the mentioned methods wrong.
> E.g. sizeof(wchar_t) == sizeof(QChar)
> which is never true on Android, and leads to Qt thinking it deals with 4-byte wchar_t arrays.
> I'd say this also will lead to crashing apps as this methods will access illegal memory.
> 
> I don't know if this is the right place to mention this bug, but as Android is not an official
> Qt platform right now, I assume I can not report the bug in the Qt bugtracker.

create a bug report here https://bugs.kde.org/show_bug.cgi?id=308746
thanks for the hint.

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/necessitas-devel/attachments/20121021/27add97e/attachment.sig>


More information about the Necessitas-devel mailing list