Old PGN parsers

Discussion of chess software programming and technical issues.

Moderator: Ras

Fulvio
Posts: 396
Joined: Fri Aug 12, 2016 8:43 pm

Old PGN parsers

Post by Fulvio »

I wonder if there are still software that expect a maximum line length when parsing PGN files.
Do you know any software that fails to parse a large PGN file if all the new lines are converted to spaces?

Code: Select all

sed -z 's/\n/ /g'
User avatar
mvanthoor
Posts: 1784
Joined: Wed Jul 03, 2019 4:42 pm
Location: Netherlands
Full name: Marcel Vanthoor

Re: Old PGN parsers

Post by mvanthoor »

I don't know any off-hand, but everything written in old versions of Pascal has a string length limit of 255 characters if I remember correctly. Strings are basically arrays of ints, with the first slot being used to indicate the length of the string. (But newer versions of Pascal do have C-strings.) We're talking about pre-1990 software here; I doubt there's still anything around that is being used outside of DOSBox.
Author of Rustic, an engine written in Rust.
Releases | Code | Docs | Progress | CCRL