[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev Sharing cookies between Linux and Windows
From: |
Thomas Dickey |
Subject: |
Re: lynx-dev Sharing cookies between Linux and Windows |
Date: |
Sat, 29 Nov 2003 19:37:45 -0500 |
User-agent: |
Mutt/1.3.27i |
On Sat, Nov 29, 2003 at 10:02:30PM -0200, Frdric L. W. Meunier wrote:
> Sorry for the delay. Yes, works fine.
thanks (I thought it would).
> On Sun, 9 Nov 2003, Thomas Dickey wrote:
>
> > On Sun, 9 Nov 2003, [ISO-8859-1] Fr?d?ric L. W. Meunier wrote:
> >
> > > Any way ? It seems on Linux it doesn't recognize CRLF line
> > > endings and just ignore them. I also thought it wouldn't use
> > > them on Cygwin with binary mounts, but that's another story.
> >
> > just reading the related source code, it appears that on Linux the CR/LF
> > characters would be read, and perhaps the CR character is confusing lynx.
> > The easy fix would be to modify this function in LYStrings.c
> >
> > PUBLIC char * LYTrimNewline ARGS1(
> > char *, buffer)
> > {
> > size_t i = strlen(buffer);
> > while (i != 0 && buffer[i-1] == '\n')
> > buffer[--i] = 0;
> > return buffer;
> > }
> >
> > to
> >
> > PUBLIC char * LYTrimNewline ARGS1(
> > char *, buffer)
> > {
> > size_t i = strlen(buffer);
> > while (i != 0 && (buffer[i-1] == '\n' || buffer[i-1] == '\r'))
> > buffer[--i] = 0;
> > return buffer;
> > }
>
> --
> http://www.pervalidus.net/contact.html
>
> ; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden