Hacker News new | ask | show | jobs
by baby 3286 days ago
> I guess curl will incorrectly recognize the binary as text.

This doesn't sound like a really good test.

1 comments

Looking for a NUL byte is the standard test that is also widely used by other tools such as grep or diff.
Interesting, I'm going to try to implement that in my file parser.