projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote branch 'origin/master' into import-gui
[pspp]
/
doc
/
dev
/
system-file-format.texi
diff --git
a/doc/dev/system-file-format.texi
b/doc/dev/system-file-format.texi
index 6276b6de859f999f376e9ab139a80bb8ab3e4dd4..8315762cef52cb26ea20f1aa2757ca3d6f622554 100644
(file)
--- a/
doc/dev/system-file-format.texi
+++ b/
doc/dev/system-file-format.texi
@@
-115,7
+115,9
@@
char padding[3];
@table @code
@item char rec_type[4];
@table @code
@item char rec_type[4];
-Record type code, set to @samp{$FL2}.
+Record type code, set to @samp{$FL2}, that is, either @code{24 46 4c
+32} if the file uses an ASCII-based character encoding, or @code{5b c6
+d3 f2} if the file uses an EBCDIC-based character encoding.
@item char prod_name[60];
Product identification string. This always begins with the characters
@item char prod_name[60];
Product identification string. This always begins with the characters
@@
-391,6
+393,11
@@
Format types are defined as follows:
@end multitable
@end quotation
@end multitable
@end quotation
+A few system files have been observed in the wild with invalid
+@code{write} fields, in particular with value 0. Readers should
+probably treat invalid @code{print} or @code{write} fields as some
+default format.
+
@node Value Labels Records
@section Value Labels Records
@node Value Labels Records
@section Value Labels Records
@@
-554,6
+561,9
@@
Machine endianness. 1 indicates big-endian, 2 indicates little-endian.
been actually observed in system files:
@table @asis
been actually observed in system files:
@table @asis
+@item 1
+EBCDIC.
+
@item 2
7-bit ASCII.
@item 2
7-bit ASCII.
@@
-574,9
+584,6
@@
UTF-8.
The following additional values are known to be defined:
@table @asis
The following additional values are known to be defined:
@table @asis
-@item 1
-EBCDIC.
-
@item 3
8-bit ``ASCII''.
@item 3
8-bit ``ASCII''.
@@
-586,9
+593,10
@@
DEC Kanji.
Other Windows code page numbers are known to be generally valid.
Other Windows code page numbers are known to be generally valid.
-Old versions of SPSS always wrote value 2 in this field, regardless of
-the encoding in use. Newer versions also write the character encoding
-as a string (see @ref{Character Encoding Record}).
+Old versions of SPSS for Unix and Windows always wrote value 2 in this
+field, regardless of the encoding in use. Newer versions also write
+the character encoding as a string (see @ref{Character Encoding
+Record}).
@end table
@node Machine Floating-Point Info Record
@end table
@node Machine Floating-Point Info Record