Version: (using Devel) OS: Linux Installed from: Compiled sources KConfigGroup allows saving groups with UTF-8 characters in the name, however returns an invalid config group upon loading them. This bug was discovered in PowerDevil throughout bug 211082 (which I'll mark as a duplicate of this one), and it's very easy to reproduce. Just create a config group named aèèòa, save it, and try loading it through KConfigGroup constructor afterwards.
*** Bug 211082 has been marked as a duplicate of this bug. ***
David, does this fix the issue? Index: kconfigini.cpp =================================================================== --- kconfigini.cpp (revision 1060385) +++ kconfigini.cpp (working copy) @@ -474,6 +474,7 @@ fclose(fp); return false; } + f.setTextModeEnabled(true); writeEntries(locale, f, writeMap); f.close(); fclose(fp);
SVN commit 1097299 by ossi: test reading & writing of groups with accented chars - works CCBUG: 217864 M +20 -0 kconfigtest.cpp M +1 -0 kconfigtest.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1097299
Dario: do you still have this issue? Do you have your test code somewhere? I suspect it might be buggy :)
Hey, I will try to reproduce later, but the issue hasn't occurred since a while... I'll check and let you know :)
Should be fixed.