solaris 2.5 long lines [was: environmental issues]
Matthias Andree
matthias.andree at gmx.de
Mon Aug 4 18:23:53 CEST 2003
On Mon, 04 Aug 2003, David Relson wrote:
> I had Bob run "t.bulkmode -v" from bogofilter/src/tests/bogofilter, create
> a tarball of the output directory (bulkmode.20030802), and send that. File
> msg.2.txt was 7,559 chars, when it should have been 10,786. Line 72 is
> supposed to be 4,374 chars, but his copy has the last 1155 characters of
> it. I don't know how or why the leading characters got removed.
>
> The workaround is to change the long line into shorter lines. The change
> has no effect on the regression test results :-)
Well, yes. Looks like the right workaround. The devil inside is called
grep which doesn't treat lines longer than LINE_MAX characters properly
or binary input. The text processing and editor tools are *VERY* lacking
on commercial Unixes, that's why we have so many tiny replacements such
as dumbhead in our check_PROGRAMS. You can rely on grep/sed/head/tail
et cetera only when you have short lines consisting of printable
US-ASCII, effectively, 0x20 to 0x7e. Anything else is shooting into the
dark.
--
Matthias Andree
More information about the Bogofilter
mailing list