An empty section name terminates IniRead,OutputVarSectionNames,Filename

Report problems with documented functionality
User avatar
JoeWinograd
Posts: 2198
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

An empty section name terminates IniRead,OutputVarSectionNames,Filename

08 May 2017, 17:47

I don't know if this is a bug or feature, but since I don't see the behavior mentioned at the IniRead doc, I decided to report it as a bug. When there is an empty section name, i.e., the section is just [], IniRead,OutputVarSectionNames,Filename stops reading sections after that. The issue came up in this forum thread:
https://autohotkey.com/boards/viewtopic.php?f=5&t=31559
Regards, Joe
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: An empty section name terminates IniRead,OutputVarSectionNames,Filename

08 May 2017, 18:07

We don't read or parse the file directly; the OS does.

IIRC, the Win32 API returns a null delimited, double-null terminated list of section names. It would be impossible to differentiate between an empty item and a terminator.
User avatar
JoeWinograd
Posts: 2198
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: An empty section name terminates IniRead,OutputVarSectionNames,Filename

08 May 2017, 18:52

Thanks, that explains it. Regards, Joe

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 39 guests