lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev multibyte characters in status line (was: lynx2.8.4dev.4)


From: Hataguchi Takeshi
Subject: lynx-dev multibyte characters in status line (was: lynx2.8.4dev.4)
Date: Sat, 8 Jul 2000 17:28:14 +0900 (JST)

On Mon, 26 Jun 2000, Atsuhito Kohda wrote:

> Lynx 2.8.4 compiled with Slang of non Japanese support version
> displays wrong Japanese characters (message catalogue?) when
> one try to "download file" like
> 
>  $B3%^%s%(B [$BLp0u%-!<(B] $B0\F0!"(B[?] $B%X%k%W!"(B[q] 
> $B=*N;!"(B[$B"+(B] $BLa$k(B 
> 
> but after ^L it displays correctly;
> 
> $B%3%^%s%I(B: [$BLp0u%-!<(B] $B0\F0!"(B[?] $B%X%k%W!"(B[q] 
> $B=*N;!"(B[$B"+(B] $BLa$k(B 
> 
> Furthermore when one press enter to download a file to disk,
> that is, when lynx asks us the filename as
> 
> Enter a filename: Contents-i386.gz 
> 
> it displays wrong characters again
> 
>  $BU%!%$%kL>$rF~N(B   Contents-i386.gz 
> 
> and this one can not corrected with ^L as far as I tried.

I wrote a patch concerned with this and it seemed to work fine
with ncurses4.2 and regular Slang 1.4.0.
--
Takeshi Hataguchi
E-mail: address@hidden

%%% Created Sat Jul  8 16:51:45 JST 2000 by target lynx.patch. %%%
diff -bru orig/lynx2-8-4/src/LYUtils.c lynx2-8-4/src/LYUtils.c
--- orig/lynx2-8-4/src/LYUtils.c        Sat Jun 24 00:15:08 2000
+++ lynx2-8-4/src/LYUtils.c     Sat Jul  8 16:50:08 2000
@@ -2066,7 +2066,12 @@
 
     if (text != NULL && text[0] != '\0') {
 #ifdef HAVE_UTF8_STATUSLINES
-       if (LYCharSet_UC[current_char_set].enc == UCT_ENC_UTF8) {
+       if ((LYCharSet_UC[current_char_set].enc == UCT_ENC_UTF8) || 
+           (HTCJK != NOCJK)) {
+           refresh();
+       }
+#else
+       if (HTCJK != NOCJK) {
            refresh();
        }
 #endif /* HAVE_UTF8_STATUSLINES */

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

reply via email to

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