lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev stopping when viewing a site


From: Leonid Pauzner
Subject: Re: lynx-dev stopping when viewing a site
Date: Wed, 18 Aug 1999 13:22:14 +0400 (MSD)

17-Aug-99 15:13 Henry Nelson wrote:
>> > When I visit http://www.educities.edu.tw/ (please ignore the Chinese...)
>> > It just stopped whatever I answered to the cookie question.
>> [...]
>> > Is this a bug?
>>
>> Yes.  Has nothing to do with cookies, and is apparent only when using
>> one of the CJK display character sets.  Working on a fix.

> Actually two bugs, depending on your point of view.  The appended patch
> clears up a long-standing problem for CJK users.  Of course, it masks
> the other problem, which I suppose is potentially more serious.

> __Henry

> * Let CJK charsets default to 7 Bit Approximations.  Needed to display
>   entities in the decimal 160-255 range.  (Restore behavior before the
>   changes made to declarations of charsets on 1999-03-04.)

That's very strange - you propose an equivalent changes:
you replace
> - static CONST struct unimapdesc_str dfont_replacedesc_fallback = 
> {0,NULL,0,1};
> !        NULL,NULL,0,dfont_replacedesc_fallback,\
with
> !        dfont_unicount,dfont_unitable,463,dfont_replacedesc,\

using one from def7_uni.h:
...
static CONST struct unimapdesc_str dfont_replacedesc = {1944,repl_map,1,0};
#define UC_CHARSET_SETUP UC_Charset_Setup("us-ascii",\
"7 bit approximations (US-ASCII)",\
dfont_unicount,dfont_unitable,463,\
dfont_replacedesc,999,0,0)

But the last flag from {0,NULL,0,1} means "use fallback to def7_uni.h"
according chartrans/readme.format, so you made an equivalent changes
unless there is another bug somethere in UCDomap.c dealing with replace tables
(I would surprized though since x-transparent charset DO fallback properly
but I cannot test something CJK specific :)
So the problem assumed somethere else. Klaus was reporting a fix for
LYUCFullyTranslate_1() - seems this is a source of the real problem in subject.


> *** lynx2-8-3/src/UCdomap.h.orig      Tue Aug 17 13:33:31 1999
> --- lynx2-8-3/src/UCdomap.h   Tue Aug 17 13:42:35 1999
> ***************
> *** 59,104 ****

>   extern void UCInit NOARGS;

> -
>   /*
>    *  INSTRUCTIONS for adding new character sets which do not have
>    *              Unicode tables.
>    *
>    *  Several #defines below are declarations for charsets which need no
>    *  tables for mapping to Unicode - CJK multibytes, x-transparent, UTF8 -
> -  *  Lynx care of them internally.
> -  *
> -  *  The declaration's format is kept in chrtrans/XXX_uni.h -
> -  *  keep this in mind when changing ucmaketbl.c,
> -  *  see also UC_Charset_Setup() above for details.
>    */

> -   /*
> -    *  There is no strict correlation for the next five, since the transfer
> -    *  charset gets decoded into Display Char Set by the CJK code (separate
> -    *  from Unicode mechanism).  For now we use the MIME name that describes
> -    *  what is output to the terminal. - KW
> -    */
> - static CONST struct unimapdesc_str dfont_replacedesc_fallback = 
> {0,NULL,0,1};
> -
>   #define UC_CHARSET_SETUP_euc_cn UC_Charset_Setup("euc-cn","Chinese",\
> !        NULL,NULL,0,dfont_replacedesc_fallback,\
>          128,UCT_ENC_CJK,0)
>   #define UC_CHARSET_SETUP_euc_jp UC_Charset_Setup("euc-jp","Japanese 
> (EUC-JP)",\
> !        NULL,NULL,0,dfont_replacedesc_fallback,\
>          128,UCT_ENC_CJK,0)
>   #define UC_CHARSET_SETUP_shift_jis UC_Charset_Setup("shift_jis","Japanese 
> (Shift_JIS)",\
> !        NULL,NULL,0,dfont_replacedesc_fallback,\
>          128,UCT_ENC_CJK,0)
>   #define UC_CHARSET_SETUP_euc_kr UC_Charset_Setup("euc-kr","Korean",\
> !        NULL,NULL,0,dfont_replacedesc_fallback,\
> !        128,UCT_ENC_CJK,0)
> ! #define UC_CHARSET_SETUP_big5 UC_Charset_Setup("big5","Taipei (Big5)",\
> !        NULL,NULL,0,dfont_replacedesc_fallback,\
>          128,UCT_ENC_CJK,0)
>     /*
>      *  Placeholder for non-translation mode. - FM
>      */
>   #define UC_CHARSET_SETUP_x_transparent 
> UC_Charset_Setup("x-transparent","Transparent",\
>          NULL,NULL,0,dfont_replacedesc_fallback,\
>          128,1,0)
> --- 59,96 ----

>   extern void UCInit NOARGS;

>   /*
>    *  INSTRUCTIONS for adding new character sets which do not have
>    *              Unicode tables.
>    *
> +  *  The declaration's format is kept in chrtrans/XXX_uni.h -
> +  *  keep this in mind when changing ucmaketbl.c.
> +  *  See also UC_Charset_Setup() above for details.
> +  *
>    *  Several #defines below are declarations for charsets which need no
>    *  tables for mapping to Unicode - CJK multibytes, x-transparent, UTF8 -
>    */

>   #define UC_CHARSET_SETUP_euc_cn UC_Charset_Setup("euc-cn","Chinese",\
> !        dfont_unicount,dfont_unitable,463,dfont_replacedesc,\
> !        128,UCT_ENC_CJK,0)
> ! #define UC_CHARSET_SETUP_big5 UC_Charset_Setup("big5","Taipei (Big5)",\
> !        dfont_unicount,dfont_unitable,463,dfont_replacedesc,\
>          128,UCT_ENC_CJK,0)
>   #define UC_CHARSET_SETUP_euc_jp UC_Charset_Setup("euc-jp","Japanese 
> (EUC-JP)",\
> !        dfont_unicount,dfont_unitable,463,dfont_replacedesc,\
>          128,UCT_ENC_CJK,0)
>   #define UC_CHARSET_SETUP_shift_jis UC_Charset_Setup("shift_jis","Japanese 
> (Shift_JIS)",\
> !        dfont_unicount,dfont_unitable,463,dfont_replacedesc,\
>          128,UCT_ENC_CJK,0)
>   #define UC_CHARSET_SETUP_euc_kr UC_Charset_Setup("euc-kr","Korean",\
> !        dfont_unicount,dfont_unitable,463,dfont_replacedesc,\
>          128,UCT_ENC_CJK,0)
>     /*
>      *  Placeholder for non-translation mode. - FM
>      */
> + static CONST struct unimapdesc_str dfont_replacedesc_fallback = 
> {0,NULL,0,1};
> +
>   #define UC_CHARSET_SETUP_x_transparent 
> UC_Charset_Setup("x-transparent","Transparent",\
>          NULL,NULL,0,dfont_replacedesc_fallback,\
>          128,1,0)




reply via email to

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