lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev Re: [dev16] REVISED patch to fix ALT chars in TEXTAREA edit


From: Kim DeVaughn
Subject: lynx-dev Re: [dev16] REVISED patch to fix ALT chars in TEXTAREA edit
Date: Thu, 11 Feb 1999 02:33:39 -0800

On Wed, Feb 10, 1999, I said:
|
| | 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,

| I just realized that x'7F' is EBCDIC for a " (doublequote) char.
|
| Sigh ... I'll submit an ifdef'd for EBCDIC version of the patch
| a bit later tonight.

OK ... here's the revised patchlet, which accomodates our MVS friends
(or is it running on VM/CMS ?).

Apply on top of the large "TEXTAREA edit" cleanup patch I posted
yesterday (or use patch's -l flag, if applying to clean dev.16
distribution files).

/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    Thu Feb 11 01:20:43 1999
+++ lynx-2.8.2-dev.16+kd/src/GridText.c Thu Feb 11 01:17:47 1999
@@ -9199,7 +9199,12 @@
            *   support, consider yourself to have been warned.]
            */
           for (p = line, s = tbuf; *s != '\0'; p++, s++)
-              *p = (*s < ' ') ? SPLAT : *s;
+#ifndef EBCDIC
+              *p = (((unsigned char)*s  < ' ')    ||
+                     ((unsigned char)*s == '\177')) ? SPLAT : *s;
+#else
+              *p = ((unsigned char)*s  < ' ') ? SPLAT : *s;
+#endif
           *p = '\0';
        }
 
##--eof--##

reply via email to

[Prev in Thread] Current Thread [Next in Thread]