In system files, fix error message when floating-point format cannot
authorBen Pfaff <blp@gnu.org>
Sun, 3 Feb 2008 06:47:24 +0000 (06:47 +0000)
committerBen Pfaff <blp@gnu.org>
Sun, 3 Feb 2008 06:47:24 +0000 (06:47 +0000)
be identified.

Patch #6347.

src/data/ChangeLog
src/data/sys-file-reader.c

index a14e6cdec31072c1e123ef1a34ee788eda278a4d..c1dd098a7cec668be7a2d43671627fe74ad7d7a4 100644 (file)
@@ -7,6 +7,8 @@
        because PSPP does not yet support them.
        (read_extension_record): Ignore extension records 20 and 21, which
        PSPP does not yet support.
+       (read_header): Fix error message when floating-point format cannot
+       be identified.
 
 2008-02-01  Ben Pfaff  <blp@gnu.org>
 
index 705fb015639a00ac74efab8ccb39d3119148624c..d5b5b15f6ff2bbf1ae4c40e859620e7a16b3fa96 100644 (file)
@@ -425,10 +425,9 @@ read_header (struct sfm_reader *r, struct dictionary *dict,
   read_bytes (r, raw_bias, sizeof raw_bias);
   if (float_identify (100.0, raw_bias, sizeof raw_bias, &r->float_format) == 0)
     {
-      sys_warn (r, _("Compression bias (%g) is not the usual "
+      sys_warn (r, _("Compression bias is not the usual "
                      "value of 100, or system file uses unrecognized "
-                     "floating-point format."),
-                r->bias);
+                     "floating-point format."));
       if (r->integer_format == INTEGER_MSB_FIRST)
         r->float_format = FLOAT_IEEE_DOUBLE_BE;
       else