[PATCH] lexer fix for nulls in input stream

Allyn Fratkin allyn at fratkin.com
Sat Oct 19 18:11:59 CEST 2002


this is a patch to lexer.l that reimplements fgets in order to translate
nulls in the input stream into spaces.  imho, this seems like the best approach
since having actual nulls in the input stream will confuse the string
handling routines farther downstream (mentioned in bug#609897),
and removing them seems like it might accidentally cause two words that
should be separated to come together.

this is intended to be a fix for bug#623784 which i submitted.
it may be a fix for #609897 but that report was somewhat vague so
i can't be sure this is enough.

this is the first patch that i have submitted, if i have made any grave
errors or process mistakes or stepped on any toes, please be gentle with
me.  :-)
-- 
Allyn Fratkin             allyn at fratkin.com
Escondido, CA             http://www.fratkin.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lexer.l.nullpatch
URL: <https://www.bogofilter.org/pipermail/bogofilter-dev/attachments/20021019/256622a7/attachment.ksh>


More information about the bogofilter-dev mailing list