Don't append slash to sysmis values when writing portable
files. Fixes bug #26034
char buffer[64];
format_trig_double (d, floor (d) == d ? DBL_DIG : w->digits, buffer);
buf_write (w, buffer, strlen (buffer));
- buf_write (w, "/", 1);
+ if (d != SYSMIS)
+ buf_write (w, "/", 1);
}
/* Write N to the portable file as an integer field. */
DATA LIST LIST NOTABLE /X Y.
BEGIN DATA.
1 2
-3 4
+3 .
5 6
END DATA.
X Y
-------- --------
1.00 2.00
- 3.00 4.00
+ 3.00 .
5.00 6.00
EOF
if [ $? -ne 0 ] ; then fail ; fi