Some very old printf implementations (e.g., on ULTRIX 4.5) do not
support negative precision with %.*s conversions in order to behave
as if the precision was omitted.
It is easy to change the rendertest program to avoid this problem,
so let's change it.
return -1;
}
- printf("%lu %.*s\n", (unsigned long)rc, -(n>0), line);
+ printf(n > 0 ? "%lu %s\n" : "%lu\n", (unsigned long)rc, line);
cdecl_free(decl);
return 0;
}
]])
AT_CHECK([rendertest -n 0 <input], [0],
-[[15 @&t@
-17 @&t@
+[[15
+17
]])
AT_CHECK([rendertest -n 10 <input], [0],
]])
AT_CHECK([rendertest --english -n 0 <input], [0],
-[[16 @&t@
-27 @&t@
+[[16
+27
]])
AT_CHECK([rendertest --english -n 15 <input], [0],