Bug 155329 - KDE4 KConfig fails to handle 1 character long variable names
Summary: KDE4 KConfig fails to handle 1 character long variable names
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-09 12:01 UTC by Karai Csaba
Modified: 2008-01-09 13:48 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karai Csaba 2008-01-09 12:01:00 UTC
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
Comment 1 Oswald Buddenhagen 2008-01-09 13:48:14 UTC
already fixed