lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev Lynx 2.8.3.dev8: CPU problems connecting to a site


From: Klaus Weide
Subject: Re: lynx-dev Lynx 2.8.3.dev8: CPU problems connecting to a site
Date: Sun, 29 Aug 1999 12:53:52 -0500 (CDT)

On Sun, 29 Aug 1999, Frederic L . W . Meunier wrote:

> #2  0x80da255 in UCGetLYhndl_byMIME (value=0x8146dbf "windows-1252")
>     at ../../src/UCdomap.c:1641
> #3  0x80d9f91 in UCGetLYhndl_byMIME (value=0x83934c0 "cp1252")
>     at ../../src/UCdomap.c:1594
> #4  0x80da271 in UCGetLYhndl_byMIME (value=0x8146dbf "windows-1252")
>     at ../../src/UCdomap.c:1644
> #5  0x80d9f91 in UCGetLYhndl_byMIME (value=0x83934b0 "cp1252")
>     at ../../src/UCdomap.c:1594

Non-terminating recursion in UCGetLYhndl_byMIME, looking for a charset
that apparently is now unrecognized because it was not compiled in.
In UCdomap.c, find the lines

    if (!strncasecomp(value, "windows-", 8) &&
        isdigit((unsigned char)value[8]) &&
        isdigit((unsigned char)value[9]) &&
        isdigit((unsigned char)value[10])) {

and change them to

    if (!strncasecomp(value, "windows-", 8) &&
        isdigit((unsigned char)value[8]) &&
        isdigit((unsigned char)value[9]) &&
        isdigit((unsigned char)value[10]) &&
        strcmp(&value[8], "1252") && strcmp(&value[8], "1250")) {

This is untested and may not be the best way, but it should work
to avoid the problem.

Alternatively, make sure the windows-1252 and windows-1250 charsets
are configured in.  (I haven't downloaded dev.8 yet, so don't know how
to do that.)

   Klaus


reply via email to

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