Skip to content

Conversation

@slobodan-ilic
Copy link
Contributor

Fixes #346

Description

This PR adds support for type 'E' multiple response sets in SPSS SAV files. These are dichotomies with CATEGORYLABELS=COUNTEDVALUES and appear in subtype 19 records in addition to the already supported subtype 7.

Changes

  1. Added a constant in
  2. Modified the Ragel grammar in to handle type 'E' format with its additional parameters
  3. Updated the code to set flag for both types 'D' and 'E'
  4. Modified the condition in to handle both subtypes 7 and 19

Testing

I've tested the changes with files containing type 'E' multiple response sets, and they are now correctly parsed.

@slobodan-ilic slobodan-ilic force-pushed the issue-346-support-type-e-mr-sets branch from e415fd5 to aee63b2 Compare October 1, 2025 06:56
@slobodan-ilic slobodan-ilic force-pushed the issue-346-support-type-e-mr-sets branch from a4159ed to 7acc0df Compare October 18, 2025 13:36
Replace //IGNORE with EILSEQ handling in readstat_convert().
Invalid bytes now show as '?' instead of causing failures.
* This handles files with encoding errors more gracefully
* than failing completely. */
if (src_len > 0 && dst_left > 0) {
*dst_end++ = '?';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for type 'E' multiple response sets in SPSS SAV files

2 participants