Problem with telnetlib dropping receive bytes.

Grant Edwards grante at visi.com
Thu Oct 7 10:09:55 EDT 2004


On 2004-10-07, Eddie Corns <eddie at holyrood.ed.ac.uk> wrote:
> Grant Edwards <grante at visi.com> writes:
>
>>Why are NUL and DC1 characters being deleted from the recieve
>>data stream at lines 431 and 433?  They're both perfectly legal
>>characters.  I can't find anywhere in RFC 854 where it says to
>>do that, and it's breaking my program.  Some of the other
>>telnet features (e.g. RFC 2217) specifically use those two byte
>>values.
>
> Looks like a bug to me.  Telnet requires that ALL 7 bit
> characters can be used.  Since it's all handled in Python I
> can't think of any reason why those characters would be a
> problem.

That's what I thought, but since somebody went out of their way
to drop those two characters, I thought I'd better check. I'll
submit a patch once I've spent some more time with telnetlib.

-- 
Grant Edwards                   grante             Yow!  Are you still an
                                  at               ALCOHOLIC?
                               visi.com            



More information about the Python-list mailing list