[2023-08-26 17:39] David Levine <levin...@acm.org> > Philipp wrote: > > > [2023-08-26 15:28] David Levine <levin...@acm.org> > > > > > > The NUL byte is output as \x00: > > > > I found the problem: The build in printf of dash don't write a NUL. > > Using printf from path to generate the test and expected file works as > > expected. > > Thank you! I'll update the test.
An other hint for this test. Posix printf specifies an octal escape sequences[0]. Replacing the '\x00' with '\000' fixes the test. Philipp [0] https://pubs.opengroup.org/onlinepubs/9699919799/utilities/printf.html