Otherwise, PSPP cannot read back .sav files that it writes, if
they contain variable attributes for variables with long names.
Thanks to Curt Reinhold <Curt.Reinhold@psychonomics.de> for
providing the .sav file that led to this discovery and to John
Darrington for helping to investigate.
In record type 18, this field contains a sequence of one or more
variable attribute sets. If more than one variable attribute set is
present, each one after the first is delimited from the previous by
In record type 18, this field contains a sequence of one or more
variable attribute sets. If more than one variable attribute set is
present, each one after the first is delimited from the previous by
-@code{/}. Each variable attribute set consists of a (potentially
-long) variable name,
+@code{/}. Each variable attribute set consists of a long
+variable name,
followed by @code{:}, followed by an attribute set with the same
syntax as on record type 17.
followed by @code{:}, followed by an attribute set with the same
syntax as on record type 17.
{
if (n_attrsets++)
ds_put_byte (&s, '/');
{
if (n_attrsets++)
ds_put_byte (&s, '/');
- ds_put_format (&s, "%s:", var_get_short_name (v, 0));
+ ds_put_format (&s, "%s:", var_get_name (v));
put_attrset (&s, attrs);
}
}
put_attrset (&s, attrs);
}
}
AT_CHECK([supports_encodings windows-1252])
AT_DATA([save.sps], [dnl
SET LOCALE='windows-1252'.
AT_CHECK([supports_encodings windows-1252])
AT_DATA([save.sps], [dnl
SET LOCALE='windows-1252'.
-DATA LIST LIST NOTABLE /àéîöç * roué (A9) croûton (A1000).
+DATA LIST LIST NOTABLE /àéîöçxyzabc * roué (A9) croûton (A1000).
FILE LABEL 'clientèle confrère cortège crèche'.
DOCUMENT coördinate smörgåsbord
épée séance soufflé soirée
jalapeño vicuña.
VALUE LABEL
FILE LABEL 'clientèle confrère cortège crèche'.
DOCUMENT coördinate smörgåsbord
épée séance soufflé soirée
jalapeño vicuña.
VALUE LABEL
+ /àéîöçxyzabc 1 'éclair élan'
/roué 'abcdefghi' 'sauté précis'.
VARIABLE LABEL
roué 'Provençal soupçon'.
DATAFILE ATTRIBUTE
ATTRIBUTE=Furtwängler('kindergärtner').
VARIABLE ATTRIBUTE
/roué 'abcdefghi' 'sauté précis'.
VARIABLE LABEL
roué 'Provençal soupçon'.
DATAFILE ATTRIBUTE
ATTRIBUTE=Furtwängler('kindergärtner').
VARIABLE ATTRIBUTE
ATTRIBUTE=Atatürk('Düsseldorf Gewürztraminer').
BEGIN DATA.
1 a x
ATTRIBUTE=Atatürk('Düsseldorf Gewürztraminer').
BEGIN DATA.
1 a x
(Entered <date>)
Variable,Description,,Position
(Entered <date>)
Variable,Description,,Position
+àéîöçxyzabc,Format: F8.2,,1
,Measure: Scale,,
,Display Alignment: Right,,
,Display Width: 8,,
,Measure: Scale,,
,Display Alignment: Right,,
,Display Width: 8,,