sys-file-reader: Accept bad variable indexes, with warnings.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 20 Jun 2020 21:52:40 +0000 (21:52 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 20 Jun 2020 22:59:07 +0000 (22:59 +0000)
commit57c1048c20829711ddcfe363e2d21812a450a522
tree9a106e9ad0d6dba38efbe61efa19c6f8bb0dcb8d
parent29a50aeb6f35214d2affdec3bdb796f2d0e655ba
sys-file-reader: Accept bad variable indexes, with warnings.

The SPSS file writer software at
https://packagist.org/packages/tiamo/spss sometimes generates malformed
variable indexes for weighting variables or value label records.  PSPP
until now has rejected these files entirely.  This commit should make
it issue a warning instead.

Thanks to István Ignácz for reporting this issue at
https://lists.gnu.org/archive/html/pspp-users/2020-06/msg00012.html
src/data/sys-file-reader.c
tests/data/sys-file-reader.at