lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LYNX-DEV Using lynx for command line ftp.


From: Jason F. McBrayer
Subject: Re: LYNX-DEV Using lynx for command line ftp.
Date: 05 Dec 1997 11:54:10 -0600

>>>>> "WB" == Wayne Buttles <address@hidden> writes:

WB> On Thu, 4 Dec 1997, John E. Davis wrote:

>> On Thu, 04 Dec 1997 13:56:50 -0500, Joe Batt <address@hidden> said:
>> >lynx -source ftp://myhost.dom/my_file.zip > my_file.zip

>> >On WinNT with the 32 bit version, the zip file gets ascii translated to
>> >have CRLFs in it.

>> Lynx is writing to stdout and the ``OS'' is redirecting the output
>> to my_file.zip.  As I recall stdout is opened in text mode and the OS
>> uses text mode to perform the redirection.  Is this really true?

WB> I don't know if this is true and I am unable to verify what is
WB> going on in the code at this time.  I had hoped to look into that
WB> and some other things like it but I haven't had the time.  I have
WB> to really concentrate to grasp what isn't in my limited wet-cache
WB> so finding good times for bug hunting is tough for me.

Under OS/2 it's certainly true that stdout is opened in text mode, so
with my OS/2 port you currently get the same results (broken binary
downloads in -source or -dump mode).  I have a fix for it, which
involves resetting the mode of stdout to binary if using the -source
flag (I won't do it for -dump).  But, my fix relies on an EMX-specific
function _fsetmode(), so I don't know if it can be generalized to all
DOS-descendants.

-- 
+----------------------------------------------------------------+
| Jason F. McBrayer              address@hidden |
| The scalloped tatters of the King in Yellow must hide Yhtill   |   
| forever.                   (R.W. Chambers _The King in Yellow_ |

reply via email to

[Prev in Thread] Current Thread [Next in Thread]