[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
LYNX-DEV DOS problems for lynx development code
From: |
Doug Kaufman |
Subject: |
LYNX-DEV DOS problems for lynx development code |
Date: |
Fri, 28 Nov 1997 21:58:35 -0800 (PST) |
Leonid Pauzner wrote to me about the problem he had using the editor
function from lynx under DOS. Initial investigation showed the problem
not to be DOS itself, but the default editor "EDIT", which can't handle
filenames in quotes. The following patch to LYEdit.c, gets rid of the
quotes for filenames for the editor in DOS only for those editors (such
as EDIT) which don't take parameter for the number of the line at which
to start. With this patch the DOS editor "EDIT" can handle files, but
only those which have a suffix. Files without a suffix are being changed
to the filename with "\." appended. This seems to be happening in
HTDOS.c, but I can't quite understand how or where. The tracelog after
the patch shows what happens when I access a file named "err" and a file
named "gnuc.opt". Gnuc.opt is handled without problem, but err becomes
"err\.". Vim can handle this construction of the filename, but "EDIT"
takes the backslash as the path separator and says "path not found".
Can anyone see how to fix this?
Doug
*** lynx2-7-1/src/LYEdit.c Thu Jul 10 13:40:10 1997
--- lynx2-7-1/src/LYEdit.c.new Fri Nov 28 21:22:54 1997
***************
*** 144,155 ****
--- 144,159 ----
filename);
#endif /* DOSPATH */
else
+ #ifdef __DJGPP__
+ sprintf(command, "%s %s", editor, HTDOS_name(filename));
+ #else
sprintf(command, "%s \"%s\"", editor,
#ifdef DOSPATH
HTDOS_name(filename));
#else
filename);
#endif /* DOSPATH */
+ #endif /* __DJGPP__ */
#endif /* VMS */
if (TRACE) {
fprintf(stderr, "LYEdit: %s\n", command);
Lynx Trace Log
LYpush: address:file://localhost/
title:Welcome directory
getfile: getting file://localhost/err
HTParse: aName:file://localhost/err relatedName:
HTParse: result:localhost
...
HTParse: aName:file://localhost/err relatedName:
1
HTParse: result:/err
HTParse: aName:file://localhost/err relatedName:
HTParse: result:
Entered HTAnchor_findAddress
Anchor 215e00 with address `file://localhost/err' already exists.
HTAccess: loading document file://localhost/err
HTParse: aName:file://localhost/err relatedName:file:
HTParse: result:file
HTParse: aName:file://localhost/err relatedName:
HTParse: result:localhost
HTParse: aName:file://localhost/err relatedName:
HTParse: result:file
HTParse: aName:file://localhost/err relatedName:
1
HTParse: result:/err
...
HTParse: aName:file://localhost/err relatedName:
1
HTParse: result:/err
Node `file://localhost/err' means path `/err'
HTDOS_name changed `err.' to `err.'
HTLoadFile: Opening `err.' gives 223e20
HTFormat: Constructing stream stack for text/plain to www/present
HTFormat: Looking up presentation for text/plain to www/present
FindPresentation: found exact match: text/plain
StreamStack: found exact match: text/plain
GridText: Change to style Example
...
GridText: split_line called
HTAccess: status=29997
HTAccess: `file://localhost/err' has been accessed.
HTParse: aName:file://localhost/err relatedName:
HTParse: result:localhost
HTParse: aName:file://localhost/err relatedName:
HTParse: result:file
HTParse: aName:file://localhost/err relatedName:
1
HTParse: result:/err
LYEdit: vim +1 "err\."
LYpush: address:file://localhost/
title:Welcome directory
getfile: getting file://localhost/gnuc.opt
HTParse: aName:file://localhost/gnuc.opt relatedName:
HTParse: result:localhost
HTParse: aName:file://localhost/gnuc.opt relatedName:
HTParse: result:localhost
HTParse: aName:file://localhost/gnuc.opt relatedName:
HTParse: result:file
HTParse: aName:file://localhost/gnuc.opt relatedName:
HTParse: result:localhost
HTParse: aName:file://localhost/gnuc.opt relatedName:
1
HTParse: result:/gnuc.opt
HTParse: aName:file://localhost/gnuc.opt relatedName:
HTParse: result:
Entered HTAnchor_findAddress
Anchor 226000 with address `file://localhost/gnuc.opt' already exists.
HTAccess: loading document file://localhost/gnuc.opt
HTParse: aName:file://localhost/gnuc.opt relatedName:file:
HTParse: result:file
HTParse: aName:file://localhost/gnuc.opt relatedName:
HTParse: result:localhost
HTParse: aName:file://localhost/gnuc.opt relatedName:
HTParse: result:file
HTParse: aName:file://localhost/gnuc.opt relatedName:
1
...
HTParse: result:/gnuc.opt
Node `file://localhost/gnuc.opt' means path `/gnuc.opt'
HTDOS_name changed `gnuc.opt' to `gnuc.opt'
HTLoadFile: Opening `gnuc.opt' gives 223e20
HTFormat: Constructing stream stack for text/plain to www/present
HTFormat: Looking up presentation for text/plain to www/present
FindPresentation: found exact match: text/plain
StreamStack: found exact match: text/plain
GridText: Change to style Example
...
HTAccess: status=29997
HTAccess: `file://localhost/gnuc.opt' has been accessed.
HTParse: aName:file://localhost/gnuc.opt relatedName:
HTParse: result:localhost
HTParse: aName:file://localhost/gnuc.opt relatedName:
HTParse: result:file
HTParse: aName:file://localhost/gnuc.opt relatedName:
1
HTParse: result:/gnuc.opt
LYEdit: vim +1 "gnuc.opt"
__
Doug Kaufman
Internet: address@hidden (preferred)
address@hidden
- LYNX-DEV DOS problems for lynx development code,
Doug Kaufman <=