fix for bug #21590.
* bugs/sysfile-info.sh: Disregard "Integer Format" and "Real
Format" lines in SYSFILE INFO output, to permit big-endian systems
to pass also. Partial fix for bug #21590.
* float-format.c (assemble_number): Only store 32 bits for Z short
format. Partial fix for bug #21590.
+2007-11-25 Ben Pfaff <blp@gnu.org>
+
+ * float-format.c (assemble_number): Only store 32 bits for Z short
+ format. Partial fix for bug #21590.
+
2007-11-08 Ben Pfaff <blp@gnu.org>
* str.c (ds_read_stream): Change return value semantics to be more
break;
case FLOAT_Z_SHORT:
- put_uint64 (native_to_be32 (assemble_z (fp, 7, 24)), number);
+ put_uint32 (native_to_be32 (assemble_z (fp, 7, 24)), number);
break;
case FLOAT_Z_LONG:
put_uint64 (native_to_be64 (assemble_z (fp, 7, 56)), number);
+2007-11-25 Ben Pfaff <blp@gnu.org>
+
+ * bugs/compression.sh: Don't fail on big-endian system. Partial
+ fix for bug #21590.
+
+ * bugs/sysfile-info.sh: Disregard "Integer Format" and "Real
+ Format" lines in SYSFILE INFO output, to permit big-endian systems
+ to pass also. Partial fix for bug #21590.
+
2007-11-15 Ben Pfaff <blp@gnu.org>
* automake.mk: Add definition of CHARSETALIASDIR to
# Make sure the file really was compressed
activity="inspect system file"
-dd if=$TEMPDIR/com.sav bs=1 skip=72 count=1 2> /dev/null | od > $TEMPDIR/file
+dd if=$TEMPDIR/com.sav bs=1 skip=72 count=4 2> /dev/null | od > $TEMPDIR/file
if [ $? -ne 0 ] ; then no_result ; fi
-activity="check compression byte"
-diff -b $TEMPDIR/file - <<EOF
-0000000 000001
-0000001
+activity="check compression setting"
+# Big-endian?
+diff -b $TEMPDIR/file - > /dev/null <<EOF
+0000000 000000 000001
+0000004
EOF
-if [ $? -ne 0 ] ; then fail ; fi
-
-
-pass;
+if [ $? -ne 0 ] ; then pass ; fi
+# Little-endian?
+diff -b $TEMPDIR/file - > /dev/null <<EOF
+0000000 000001 000000
+0000004
+EOF
+if [ $? -ne 0 ] ; then pass ; fi
+# Otherwise error.
+cat $TEMPDIR/file
+fail
if [ $? -ne 0 ] ; then no_result ; fi
activity="filter output"
-egrep -v '^(Created|Endian): ' $TEMPDIR/pspp.list > $TEMPDIR/out-filtered
+egrep -v '^(Created|Endian|Integer Format|Real Format): ' $TEMPDIR/pspp.list > $TEMPDIR/out-filtered
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output"
2.1 SYSFILE INFO.
File: pro.sav
Label: No label.
-Integer Format: Little Endian.
-Real Format: IEEE 754 LE.
Variables: 2
Cases: 3
Type: System File.