$B2,ED$G$9!#(B
From: Hironori Sakamoto <h-saka@lsi.nec.co.jp>
Subject: [w3m-dev 00638] Re: auto detection of Japanese code.
Date: Mon, 22 May 2000 12:03:32 +0900 (JST)
$B:dK\$5$s(B> $B$D$$$G$K!"!V(Baito$BO"MmD"!W$N(B HTTP $B%X%C%@$N(B Title: $B$,J8;z2=$1$9(B
$B:dK\$5$s(B> $B$k$N$OG!2?!)(B
HTTP $B%X%C%@$OFbIt%3!<%I(B(EUC)$B$KJQ49$5$l$J$$$N$G!"=PNO$9$k$H$-:](B JIS $B$N(B
2 $B%P%$%HL\$N(B " $B$,(B " $B$K$J$C$F$7$^$&$N$,860x$G$7$?!#(B
$B:dK\$5$s$N(B conv $B%Q%C%A(B [w3m-dev 677, 704] $B$rEv$F$?$&$($G!"$H$j$"$($:0J(B
$B2<$N%Q%C%A$rEv$F$k$HD>$j$^$7$?!#:dK\$5$s$N(B conv $B%Q%C%A$rEv$F$J$/$F$b!"(B
$BF1$8$h$&$J=$@5$GD>$k$H;W$$$^$9!#(B
-- Tsutomu Okada <okada@furuno.co.jp>*** map.c.old Fri May 26 11:36:31 2000 --- map.c Fri May 26 12:45:53 2000 *************** *** 114,119 **** --- 114,122 ---- TextListItem *ti; struct frameset *f_set = NULL; int all; + #ifdef JP_CHARSET + char code = '\0', ic; + #endif Strcat_charp(tmp, "<html><head><title>Information about current page</title></head><body>"); Strcat_charp(tmp, "<h1>Information about current page</h1><table>"); *************** *** 149,154 **** --- 152,161 ---- Strcat_charp(tmp, "<hr width=50%>\n"); Strcat_charp(tmp, "<h1>Header information</h1>\n"); for (ti = buf->document_header->first; ti != NULL; ti = ti->next) { + #ifdef JP_CHARSET + if ((ic = checkShiftCode(ti->ptr, code)) != '\0') + ti->ptr = (conv(ti->ptr, (code = ic), InnerCode))->ptr; + #endif /* JP_CHARSET */ Strcat_charp(tmp, htmlquote_str(ti->ptr)); Strcat_charp(tmp, "<br>"); }
This archive was generated by hypermail 2b29 : Wed Jul 19 2000 - 10:30:56 CDT