Unusual behavior with rotor

Terry Reedy tjreedy at udel.edu
Tue Aug 20 23:01:35 EDT 2002


"Jeff Sykes" <jeff at cowz.com> wrote in message
news:3D62F701.E4DE1270 at cowz.com...
> I'm using rotor to encrypt some files. When I open and decrypt the
> files, they are being truncated. Not quite sure what's happening
here,
> but here's a code snip from the class I'm using:

> Weird. Any ideas what's causing this?

Are you on Windows?  Can a rotored char become ^Z (dos/win end of file
marker)?
If so, and open in (default?) text mode, you could get behavior
mentioned.

TJR






More information about the Python-list mailing list