Re: Logic flaw in 3to4 Encoding

Giganews Newsgroups
Subject: Re: Logic flaw in 3to4 Encoding
Posted by:  Chad Z. Hower aka Kudzu (cp…@hower.org)
Date: Sat, 12 Jul 2003

"Remy Lebeau \(TeamB\)" <gambit…@yahoo.com> wrote in
news:CBBD4AAABC76E240gambit…@yahoo.com:
> I think the 3to4 encoders have a basic logic flaw which is responsible
> for frequent user complaints about "uneven" byte size errors.  When
> calling Encode(), it first tests the byte size to see if it is an even
> multiple of 3.  But that is wrong.  The encoding sceme is specifically

If the ENCODE tests it, yes it is a bug. Esp because the encode does add the
extra filler bytes - however check how Indy uses it. It might just be a
requirement of a pre condition. Its been a while since I worked in the
encoders. The decoders in 10 have been revamped though and are MUCH faster.
:)

Replies

In response to

Logic flaw in 3to4 Encoding posted by Remy Lebeau (TeamB) on Fri, 11 Jul 2003