In a recent note, Thomas E. Dickey said: > Date: Mon, 22 Oct 2001 09:08:54 -0400 (EDT) > > On Mon, 22 Oct 2001 [EMAIL PROTECTED] wrote: > > > The problem: If the last character of a string has the 0x80 bit set, > > the "i++" in LYLowerCase skips over the terminating NUL and LYLowerCase > > coasts througm memory converting characters to lower case until it > > encounters a NUL not preceded by 0x80. This usually results in an > > Invalid Heap at the next call to free() and Lynx crashes, leaving the > > terminal in an insane state. > > how do you determine the end of an EBCDIC string? > '\0' as required by ANSI C.
> > fix. Should I perhaps disable SUPPORT_MULTIBYTE_EDIT early in some > > header file if EBCDIC is set? > > probably a good idea > OTOH, explicitly disabling it at the point of the problem might alert a future maintainer who might otherwise naively re-break it. -- gil -- StorageTek INFORMATION made POWERFUL ; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]