[fpc-pascal]Inifile bug
Michael.VanCanneyt at Wisa.be
Michael.VanCanneyt at Wisa.be
Sun Nov 26 23:44:52 CET 2000
On Sun, 26 Nov 2000, Jean-Pierre PLANAS wrote:
> Hello
>
> Bug in Inifile (version 1.02)
>
> In inifile, line 523, in TIniFile.FillSectionList method, a call to
> oSection.KeyList.Add(TIniFileKey.Create(sIdent, sValue))
> is made even if sIdent='' and sValue=''.
> I think that when the test "if sLine > '' then" is made, a begin/end
> section must stop the add of a new key.
>
> The problem then is we have empty keys and so when the file is saved, we
> have line witch contains only the char '=', because the key='' and the
> value='', but the key exist...
>
> How to correct the bug :
> Add a "begin" at line 495
> Add a 'end" at line 525
I have added the fix; the change is in both fix branch and main branch;
please download tomorrow's fcl10.zip and let me know if it's correct (or
send me code to test it myself...)
Michael.
More information about the fpc-pascal
mailing list