On Mon, 22 Oct 2001 [EMAIL PROTECTED] wrote:

> The offending code, distilled, is:
>
>     for (i = 0; buffer[i]; i++)
>     {
>         if (buffer[i] & 0x80) {
>             { ... }
>             i++;
>         } else {
>             buffer[i] = UCH(TOLOWER(buffer[i]));
>         }
>     }
>
> The i++ may skip the NUL if the preceding character has 0x80 set.

would a 0x00 be legal following the 0x80?  (If not, we could add a check
for that special case).

-- 
T.E.Dickey <[EMAIL PROTECTED]>
http://invisible-island.net
ftp://invisible-island.net


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]

Reply via email to