(This message is cc'd to Joseph Nastasi.)
OK, this one's been bugging me for days, but I think I've finally
pinned down the problem. I'm writing a weblogging application and I'm
using Pyramid's excellent FTPSuite to help with the remote publishing.
Part of the weblogging system is an RSS feed that the program generates
for you. I couldn't get the RSS feed, after being uploaded, to display
correctly in any newsreader or to validate in any validator. The
validators told me there was a null character inserted about four or
five bytes from the end of the feed. The local file, before being
uploaded, is fine. Hmmm, I thought, must be a bug in FTPSuite or
something. So I fired up the FTPSuite demo app and it worked fine.
Switched back to my app, using the same exact uploading code, and it
broke again. After banging my head against possible solutions, I
finally realized the key difference: I was running my own code in 5.5.2
and the FTPSuite demo code in 5.5.1 (because I didn't feel like
quitting 5.5.2 with my code open). I opened my own code in 5.5.1 and it
works perfectly! I've verified that the same thing happens with some
other old FTP classes I found on the net.
So I guess I'm wondering where that leaves me. I don't really want to
revert to 5.5.1, but if 5.5.2's sockets are going to insert characters
into uploaded files, that's a showstopper for me. What changed in the
sockets between 5.5.1 and 5.5.2?
Anybody have any advice or suggestions?
This is on 10.3.4, BTW.
--
brad at truetech dot org
http://truetech.org
<><
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|