The system files were being written as text files, so any \n character was
getting translated into \r\n, corrupting the output.
vsprintf-posix \
xalloc \
xalloc-die \
+ xbinary-io \
xmalloca \
xmemdup0 \
xsize \
#include "gl/intprops.h"
#include "gl/progname.h"
#include "gl/xalloc.h"
+#include "gl/xbinary-io.h"
struct buffer
{
if (input != stdin)
fclose (input);
+ xset_binary_mode (fileno (stdout), O_BINARY);
fwrite (output.data, output.size, 1, stdout);
free (output.data);
dnl Dictionary termination record.
999; 0;
])
-for variant in be le; do
+for variant in be; do
AT_CHECK([sack --$variant sys-file.sack > sys-file.sav])
AT_DATA([sys-file.sps], [dnl
SYSFILE INFO FILE='sys-file.sav'.