Special characters in KConfig

kde.braxton at gmail.com kde.braxton at gmail.com
Wed Feb 6 13:40:08 GMT 2008


On 2/6/08, Lubos Lunak <l.lunak at suse.cz> wrote:
>
>  Hello,
>
>  I've just spent 2+ hours trying to write a trivial kconf_update script.
> Unsuccessfully. Because of the @%^!^@!^!! idea to use 1 (not '1', but
> numeric
> 1) as separator in KGlobalAccel items, used as keys for KConfig. And, after
> that, I noticed KConfig itself does something similar intentionally, with
> http://websvn.kde.org/?view=rev&revision=740551 replacing the rather obvious
> and intuitive '/' with '\x01d' as the group separator (in nested groups).
>
>  Now, the questions I have, are:
> - how the hell is one supposed to handle either of those with kconf_update
> - dtto, with kreadconfig/kwriteconfig
> - will somebody have a problem with me making KConfig simply assert on any
> non-printable character in key or group name, and use '/' again for groups?
>
the group separator was changed because using '/' broke icon-themes
and other configs that have groups that use '/' in the name. the char
'\x1d' was chosen for exactly the reason that it should be almost
never used in a normal group name. see
http://lists.kde.org/?l=kde-core-devel&m=119567100708496&w=2 for the
discussion.




More information about the kde-core-devel mailing list