[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev [dev16] patch to fix ALT chars in TEXTAREA edit (was: 8-bit cha
From: |
Kim DeVaughn |
Subject: |
lynx-dev [dev16] patch to fix ALT chars in TEXTAREA edit (was: 8-bit characters in EDITTEXTAREA) |
Date: |
Wed, 10 Feb 1999 18:55:47 -0800 |
On Wed, Feb 10, 1999, Ismael Cordeiro (address@hidden) said:
|
| When using EDITTEXTAREA, 8-bit characters are "translated" to dots when I
| quit the editor. If I go back to the editor, the original 8-bit characters
| appear as dots.
Fixed by the attached patchlet (which also replaces the 0x7f [DEL]
char that I had overlooked before). I am not sure if 0xff should be
filtered as well, so I've left it alone,
Applies cleanly on top of the large "cleanup" patch I posted yesterday.
Use patch's -l (ignore whitespace) flag if applying it to -dev.16, as
distributed, else you'll get a reject.
/kim
diff -uNr lynx-2.8.2-dev.16+kd.orig/src/GridText.c
lynx-2.8.2-dev.16+kd/src/GridText.c
--- lynx-2.8.2-dev.16+kd.orig/src/GridText.c Tue Feb 9 18:50:31 1999
+++ lynx-2.8.2-dev.16+kd/src/GridText.c Wed Feb 10 18:01:48 1999
@@ -9199,7 +9199,8 @@
* support, consider yourself to have been warned.]
*/
for (p = line, s = tbuf; *s != '\0'; p++, s++)
- *p = (*s < ' ') ? SPLAT : *s;
+ *p = (((unsigned char)*s < ' ') ||
+ ((unsigned char)*s == '\177')) ? SPLAT : *s;
*p = '\0';
}
##--eof--##
Re: lynx-dev Re: 8-bit characters in EDITTEXTAREA, Klaus Weide, 1999/02/11
Re: lynx-dev Re: 8-bit characters in EDITTEXTAREA, Leonid Pauzner, 1999/02/10
lynx-dev [dev16] patch to fix ALT chars in TEXTAREA edit (was: 8-bit characters in EDITTEXTAREA),
Kim DeVaughn <=