[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 155329] New: KDE4 KConfig fails to handle 1 character long
From: Karai Csaba <cskarai () freemail ! hu>
Date: 2008-01-09 11:01:01
Message-ID: 20080109120100.155329.cskarai () freemail ! hu
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic