reassign 304657 newt tags 304657 + patch tags 304657 + d-i thanks This is bug in newt. Attached patch fixes it. 14.04.2005 о 20:09 +0200 Christian Perrier написав(-ла): > > Quoting Christian Perrier (bubulle@debian.org): > > > rc3 failed first in manual network configuration, not accepting > > > 10.0.0.1 (nor other addresses from the private classes) as a valid IP. > > > When editing the IP address after the installer complained, neither > > > backspace or left arrow worked at first; however I was able to jump to > > > the beginning of the line with ctrl-a and use delete or ctrl-d to > > > delete text. After inserting some text at the beginning of the line, > > > backspace suddenly started to work. > > > I have reproduced this in RC3. However, I did so by entering the > following: > > 10.0.0.à, then Backspace to erase the "à", then entering "1" > > If I enter 10.0.0.1 without the typo, netcfg behaves correctly. -- Eugeniy Meshcheryakov Kyiv National Taras Shevchenko University Information and Computing Centre http://icc.univ.kiev.ua
diff -urN newt-0.51.6/debian/patches/88_input_universal.patch newt-mod/debian/patches/88_input_universal.patch
--- newt-0.51.6/debian/patches/88_input_universal.patch 2005-04-14 22:43:47.769134931 +0300
+++ newt-mod/debian/patches/88_input_universal.patch 2005-04-14 22:44:31.768885998 +0300
@@ -1,6 +1,6 @@
diff -ruN newt-0.51.6-old/entry.c newt-0.51.6/entry.c
---- newt-0.51.6-old/entry.c 2004-04-23 17:32:55.000000000 +0300
-+++ newt-0.51.6/entry.c 2004-04-23 18:40:25.000000000 +0300
+--- newt-0.51.6-old/entry.c 2005-04-14 22:27:38.488453000 +0300
++++ newt-0.51.6/entry.c 2005-04-14 22:38:54.414190472 +0300
@@ -8,6 +8,7 @@
#include <slang.h>
#include <stdlib.h>
@@ -100,7 +100,7 @@
}
void newtEntrySetFlags(newtComponent co, int flags, enum newtFlagsSense sense) {
-@@ -212,7 +274,7 @@
+@@ -212,7 +251,7 @@
newtGotorc(co->top, co->left);
else
newtGotorc(co->top, co->left +
@@ -109,7 +109,7 @@
er.result = ER_SWALLOWED;
break;
-@@ -252,6 +315,30 @@
+@@ -252,6 +291,30 @@
return er;
}
@@ -140,7 +140,7 @@
static struct eventResult entryHandleKey(newtComponent co, int key) {
struct entry * en = co->data;
struct eventResult er;
-@@ -285,46 +372,53 @@
+@@ -292,46 +355,53 @@
case '\002': /* ^B */
case NEWT_KEY_LEFT:
if (en->cursorPosition)
@@ -163,7 +163,7 @@
+ *(chptr - delta) = *chptr;
+ chptr++;
+ }
-+ *(chptr - delta) = '\0';
++ *(chptr - 1) = '\0';
+ en->bufUsed-=delta;
}
- *(chptr - 1) = '\0';
@@ -188,10 +188,9 @@
+ *(chptr - delta) = *chptr;
chptr++;
}
-- *(chptr - 1) = '\0';
-+ *(chptr - delta) = '\0';
-+ }
+ *(chptr - 1) = '\0';
}
++ }
break;
case '\006': /* ^B */
@@ -209,7 +208,7 @@
SLtt_beep();
break;
}
-@@ -357,7 +451,7 @@
+@@ -364,7 +434,7 @@
}
}
Attachment:
signature.asc
Description: Digital signature