Review Request: Fix sanitization of dbus path in KMainWindow

Thomas Lübking thomas.luebking at web.de
Tue Aug 18 14:34:12 BST 2009


Am Tuesday 18 August 2009 schrieb Thiago Macieira:

> It means you just misused QString.
Indeed - forcing QString::fromUtf8("ß") makes it work as expected.
Good to know =D
(The Qt docu states that QString(const *char) makes implicit use of 
QString::fromAscii())

> Please compile your code with #define QT_NO_CAST_FROM_ASCII and
> QT_NO_CAST_TO_ASCII.
this would be more like a call to whoever set an objectName/appName using 
utf-8 (and is pretty nasty in it's effect, btw ;-)

Another thing:
the '_' substitution may be ambigious as e.g. "_sen" and "_sen" are the very 
same strings...
i'd suggest to insert _<unicode>_ instead, so "_214_sen" and "_228_sen" remain 
individual (unless not used othwerwise... it's a far corner case anyway)

Regards and thanks for yet another lesson,
Thomas




More information about the kde-core-devel mailing list