| Summary: | KDE4 KConfig fails to handle 1 character long variable names | ||
|---|---|---|---|
| Product: | [Unmaintained] kdelibs | Reporter: | Karai Csaba <cskarai> |
| Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
already fixed |
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