-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Is there any portable way to process files that contain NUL bytes? I'm
working on making m4 1.6 transparently handle NUL, and want to
post-process the output to normalize error messages while still verifying
that NUL bytes appeared where expected on s
Hi Eric,
On 2 Oct 2008, at 10:51, Eric Blake wrote:
Is there any portable way to process files that contain NUL bytes?
None that I'm aware of. Many GNU utilities are reasonably well
behaved with respect to '\0', and m4 is unusual to some extent in that
we don't handle them well ourselves.
Hi Eric,
* Eric Blake wrote on Thu, Oct 02, 2008 at 04:51:58AM CEST:
>
> Is there any portable way to process files that contain NUL bytes?
tr? If you only need to compare for equality, then use cmp.
> The Solaris man
> pages mention that /usr/xpg4/bin/tr can handle NUL bytes, but not
> /usr/b