[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mapping text files

From: Bruce Korb
Subject: Re: Mapping text files
Date: Wed, 20 Sep 2006 12:37:34 -0700

On 9/20/06, Paul Eggert <address@hidden> wrote:
> the correct response is something along the lines of EINVAL
> whenever strlen(filedata) != filestat.st_size.

The GNU coding standards disagree: they say "Utilities reading files
should not drop NUL characters".

Wait.  I get it.  The GNU coding standards say that, but really
mean that "Utilities reading arbitrary, non-application-specific files should
not drop NUL characters".  Applications that have text input files are
certainly free to require that their application-specific files be NUL-free.
That was where Miss Communication was hiding.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]