At 6:37 PM -0500 1/30/00, Lex Spoon wrote:
>"Bolot Kerimbaev" <[EMAIL PROTECTED]> wrote:
>> > Yep, turns out to be a simple little 'off by one' bug. Add 2, rather than
>> 3 :)
>>
>> Bijan, thanks for finding this bug. Actually, I had found it a while ago,
>> but was waiting for a bunch of this to accumulate before I release Comanche
>> 4.5. I ran into this when I was doing some XML-RPC stuff between two
>> Squeaks.
>>
>
>Hey, would this by any chance cause a net *two* extra bytes to be read
>in for posts?
Er.. details? Where, which, when, what?
> If so, it could solve another problem we've run into....
>(Not a bug on Comanche's part, but it's hard to fix)
Er..I don't quite see how. It's only one char off.
Hmm. Unless...Ok. Are you stripping, replacing or reversing crs with
linefeeds? If you had a crcrlf sequence after the...oops. That wouldn't
necessarly do it either. Fudge.
I think it would be a really good idea to get some unit tests into
Comanche. It would make this sort of thing easier to detect. And when
dealing with this sort of structured text protocals, it's really easy to
simulate the right input. It would make porting a touch easier too.
Anyone up for this? Comanche has already gotten quite big, but if loads of
people pitched in we could probably come up with a suitable set of unit
tests.
Cheers,
Bijan.