fp.ini line length limit
Original Reporter info from Mantis: Postapocalypse_Day
-
Reporter name: Evgeniy Shtrenyov
Original Reporter info from Mantis: Postapocalypse_Day
- Reporter name: Evgeniy Shtrenyov
Description:
Looks like that FPC 3.0.4 text IDE cannot save/use INI file with line length more or equal than 256 bytes. It makes problem with adding help files using FPC IDE menu: Help -> Files -> New. I'm using official documentation from ftp://ftp.freepascal.org/fpc/dist/3.0.4/docs/doc-chm.zip After adding files and exiting IDE it does save only first 256 bytes of result "Files" string in "Help" section. If total length of help file paths exceeds 256 bytes, it saves configuration incorrectly. Looks like that it use classical 255-bytes strings for INI lines in fpini.pas and wini.pas.
I've tested it on LFS (Linux From Scratch) with self-builded FPC. May be it's bug of my building.
Steps to reproduce:
Open FPC IDE, press "Help" -> "Files", add some help-files with total sum of file lengths >= ~256 characters. Close FPC IDE and check fp.ini [Help] section, Files value. Open again FPC IDE, check "Help" -> "Files".
Additional information:
I wrote small "dirty" patch to use separate INI values for help file paths. It does not really solve problem, but it can help if file path length fits in single INI line.