|
From: | Paul Eggert |
Subject: | bug#51669: some patterns which should match 0x0 don’t do so |
Date: | Sun, 7 Nov 2021 23:20:24 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 |
On 11/7/21 16:45, Christoph Anton Mitterer wrote:
POSIX says text files cannot contain NUL bytes. They can contain 0x02 bytes, though.why is 0x00 different from 0x02?
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_403More generally, in a POSIX system any method for deciding whether a file is text vs binary is to some extent a heuristic, and there will always be corners in any such heuristic.
[Prev in Thread] | Current Thread | [Next in Thread] |