• data/binkstats.ini has hundreds of thousands of blank lines

    From Deucе@1:103/705 to GitLab issue in main/sbbs on Sat Oct 18 19:43:26 2025
    open https://gitlab.synchro.net/main/sbbs/-/issues/991

    Not sure what even creates this file, but there's a couple hundred thousand blank lines in it chunked between the different sections.
    --- SBBSecho 3.30-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to GitLab note in main/sbbs on Sun Oct 19 12:28:50 2025
    https://gitlab.synchro.net/main/sbbs/-/issues/991#note_7739

    After about 12 hours of running, there's 192 blank lines before the `[inbound success: 1:218/700@fidonet]` section.
    --- SBBSecho 3.30-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sun Oct 19 20:16:34 2025
    https://gitlab.synchro.net/main/sbbs/-/issues/991#note_7741

    binkit.js creates and updates this file. Mine (updated today) doesn't have any excessive blank lines it.

    Maybe `File.iniRemoveSection()` isn't removing extra blank lines? Looking at the code (ini_file.c), it appears it should be. Without being able to reproduce, it'll be pretty hard for me to fix.
    --- SBBSecho 3.30-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to GitLab note in main/sbbs on Sun Oct 19 22:55:52 2025
    https://gitlab.synchro.net/main/sbbs/-/issues/991#note_7742

    Huh, I guess that's a new feature since I last worked on binkit.
    --- SBBSecho 3.30-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to GitLab note in main/sbbs on Mon Oct 20 00:02:54 2025
    https://gitlab.synchro.net/main/sbbs/-/issues/991#note_7745

    Every time this script runs, an extra blank line is added before \[second\]... not setting the section separator makes the issue go away:

    ```javascript
    var f = new File(js.exec_dir + 'test.ini');

    if(f.open(f.exists ? 'r+':'w+')) { f.ini_section_separator = ''; f.iniReplaceObject = function(sec, obj) { this.iniRemoveSection(sec); this.iniSetObject(sec, obj); };

    f.iniSetObject('first', {key1:'val1',key2:'val2'});
    f.iniReplaceObject('second', {key1:'val1',key2:'val2'});
    f.close();

    }
    ```
    --- SBBSecho 3.30-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)