[Bug 155329] New: KDE4 KConfig fails to handle 1 character long variable names
Karai Csaba
cskarai at freemail.hu
Wed Jan 9 11:01:01 GMT 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=155329
Summary: KDE4 KConfig fails to handle 1 character long variable
names
Product: kde
Version: unspecified
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: unassigned-bugs kde org
ReportedBy: cskarai freemail hu
Version: (using KDE Devel)
Installed from: Compiled sources
I have a problem with KConfig (KDE version: 3.97).
I've tried to create the following config:
[section]
/=MainFolderOptions
At loading the config, KDE reported "Invalid entry (empty key)".
I thought that this is because of the '/' character, but when I checked the code, I found that '/' doesn't disturb KDE. The problem was because of the 1-char long name. The "Item_/" name works well.
} else if (end == 1) {
// empty key
kWarning() << warningProlog(file, lineNo) << "Invalid entry (empty key)" << endl;
continue;
}
Variable "end" is the location of the '=' character.
I think, that "else if (end == 0)" would be much better.
Thanks,
Csaba Karai
More information about the Unassigned-bugs
mailing list