SPSS appears to write the short names of the variables in a
multiple response set in lowercase, so this commit make PSPP
do the same.
Thanks to Curt Reinhold <Curt.Reinhold@psychonomics.de> for
providing the .sav file that led to this discovery.
@itemize @bullet
@item
-The set's name (an identifier that begins with @samp{$}).
+The set's name (an identifier that begins with @samp{$}), in mixed
+upper and lower case.
@item
An equals sign (@samp{=}).
A space.
@item
-The names of the variables in the set, each separated from the
-previous by a single space.
+The short names of the variables in the set, converted to lowercase,
+each separated from the previous by a single space.
@item
A line feed (byte 0x0a).
const char *short_name_utf8 = var_get_short_name (mrset->vars[j], 0);
char *short_name = recode_string (encoding, "UTF-8",
short_name_utf8, -1);
+ str_lowercase (short_name);
ds_put_format (&s, " %s", short_name);
free (short_name);
}