[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: |
Sun, 9 Nov 2003 17:14:15 -0500 (EST) |
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;
}
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden