KConfigGroup read/write bug for QByteArray

Thiago Macieira thiago at kde.org
Sun Sep 16 14:46:44 BST 2007


David Jarvie wrote:
>The conversion occurs at the KConfigINIBackEnd level - reading from the
> config file using QFile seems to automatically convert the input to
> UTF8. Since at this level the config entry type is unknown, the
> solution looks like KConfigGroup::writeEntry() should write all
> QByteArray byte values >= 0x7F in hex representation. That way, the
> QFile read won't change them, and the correct value will be accessible
> to KConfigGroup for conversion.

As long as it doesn't break UTF-8 encoded strings, it should be fine.
-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070916/045ba501/attachment.sig>


More information about the kde-core-devel mailing list