lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev lynx2.8.4dev.6.patch.gz


From: Atsuhito Kohda
Subject: Re: lynx-dev lynx2.8.4dev.6.patch.gz
Date: Mon, 07 Aug 2000 14:49:26 +0900

From: Hataguchi Takeshi <address@hidden>
Subject: Re: lynx-dev lynx2.8.4dev.6.patch.gz
Date: Sun, 6 Aug 2000 18:30:57 +0900 (JST)

> I wrote a patch according to this advice.  This patch will avoid the
> unnecessary refresh only when the statusline message doesn't contain
> CJK characters.
> 
> diff -bru orig/lynx2-8-4/src/LYUtils.c lynx2-8-4/src/LYUtils.c
> --- orig/lynx2-8-4/src/LYUtils.c      Fri Aug  4 02:19:52 2000
> +++ lynx2-8-4/src/LYUtils.c   Sun Aug  6 11:37:18 2000
> @@ -2065,13 +2065,22 @@
>      clrtoeol();
>  
>      if (text != NULL && text[0] != '\0') {
> +     BOOLEAN has_CJK = FALSE;
> +     if (HTCJK != NOCJK) {
> +         for (i = 0; buffer[i] != '\0'; i++) {
> +             if (buffer[i] & 0x80) {
> +                 has_CJK = TRUE;
> +                 break;
> +             }
> +         }
> +     }
>  #ifdef HAVE_UTF8_STATUSLINES
>       if ((LYCharSet_UC[current_char_set].enc == UCT_ENC_UTF8) || 
> -         (HTCJK != NOCJK)) {
> +         (has_CJK)) {
>           refresh();
>       }
>  #else
> -     if (HTCJK != NOCJK) {
> +     if (has_CJK) {
>           refresh();
>       }
>  #endif /* HAVE_UTF8_STATUSLINES */

Well, I tried the above patch with lynx 2.8.4dev.7 and the original
Slang.  To tell the truth, I could not notice so much improvement 
because I did not notice any incovenience with dev.7 only.

Anyway, it worked fine as far as I tested.  Thanks for your efforts.

Best Regards,                    2000.8.7

--
 Debian JP Developer - much more I18N of Debian
 Atsuhito Kohda <address@hidden>
 Department of Math., Tokushima Univ.

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

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