[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev Lynx bug on Cygwin ?
From: |
Thomas Dickey |
Subject: |
Re: lynx-dev Lynx bug on Cygwin ? |
Date: |
Thu, 5 Dec 2002 21:04:12 -0500 |
User-agent: |
Mutt/1.3.27i |
On Wed, Dec 04, 2002 at 12:14:52PM -0300, Fr?d?ric L. W. Meunier wrote:
> On Wed, 4 Dec 2002, Thomas E. Dickey wrote:
>
> > On Wed, 4 Dec 2002, Fr?d?ric L. W. Meunier wrote:
> >
> > > I compiled 2.8.5dev.11 on latest Cygwin. When I press 'G' and
> > > an arrow key I get:
> > >
> > > "Illegal URL:"
> > >
> > > I only get the following with Trace:
> >
> > I have a dev.9 at hand, and see that it also did not allow "g." or "g..".
>
> I only know it worked with dev.8. Yes, I skipped dev.9 (on
> Cygwin, not Linux)...
>
> I see 'g' + ~ 'g' + / 'g' + // fail.
>
> 'g' + ~~~ ($HOME) and 'g' + /// (root Cygwin) work.
Here's a fix (I thought I'd corrected this one - I recall breaking it in
my cleanup of constants and then fixing it):
--- LYMainLoop.c.orig Sun Dec 1 15:29:44 2002
+++ LYMainLoop.c Thu Dec 5 20:55:52 2002
@@ -707,14 +707,16 @@
&& LYIsDosDrive(user_input_buffer + len - 2))
LYAddPathSep0(user_input_buffer);
- } else if (len == 2 && LYIsDosDrive(user_input_buffer)) {
- LYAddPathSep0(user_input_buffer);
- } else {
- HTUserMsg2(WWW_ILLEGAL_URL_MESSAGE, user_input_buffer);
- LYstrncpy(user_input_buffer, *old_user_input, MAX_LINE - 1);
- FREE(*old_user_input);
- ret = FALSE;
- break;
+ } else if (len == 2 && user_input_buffer[1] == ':') {
+ if (LYIsDosDrive(user_input_buffer)) {
+ LYAddPathSep0(user_input_buffer);
+ } else {
+ HTUserMsg2(WWW_ILLEGAL_URL_MESSAGE, user_input_buffer);
+ LYstrncpy(user_input_buffer, *old_user_input, MAX_LINE
- 1);
+ FREE(*old_user_input);
+ ret = FALSE;
+ break;
+ }
}
#endif
/*
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden