Bug 155329

Summary: KDE4 KConfig fails to handle 1 character long variable names
Product: [Unmaintained] kdelibs Reporter: Karai Csaba <cskarai>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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