I guess it's C Programming 101, but I had not realized that the size of a text file on Windows is not the same as the return value from fread() in text mode. There's no reason to open JSON in text mode anyway since we don't care about line endings.
Also run Python tests (the ones that matter) on Windows and MacOS to ensure this doesn't happen again.
I guess it's C Programming 101, but I had not realized that the size of a text file on Windows is not the same as the return value from fread() in text mode. There's no reason to open JSON in text mode anyway since we don't care about line endings.
Also run Python tests (the ones that matter) on Windows and MacOS to ensure this doesn't happen again.