[w3m-dev 03941] Re: 標準入力からの読み込みについて
Hironori SAKAMOTO <[email protected]>
| Newsgroups | gmane.comp.web.w3m.devel |
|---|---|
| Message-ID | <[email protected]> |
> From: SAKAI Kiyotaka <[email protected]> > 1. text/plain > > <!DOCTYPE HTML > HTML "v" -T text/html > 2. HTML SJIS > "v" html w3m-m17n (...) w3m-m17n backport () ----------------------------------- <[email protected]> http://www2u.biglobe.ne.jp/~hsaka/ diff -u main.c.orig main.c --- main.c.orig Tue May 13 10:27:31 2003 +++ main.c Thu Jul 17 17:10:52 2003 @@ -4453,12 +4453,22 @@ if (Currentbuf->sourcefile == NULL) { if (Currentbuf->pagerSource && !strcasecmp(Currentbuf->type, "text/plain")) { +#ifdef JP_CHARSET + char old_code; +#endif FILE *f; Str tmpf = tmpfname(TMPF_SRC, NULL); f = fopen(tmpf->ptr, "w"); if (f == NULL) return; +#ifdef JP_CHARSET + old_code = DisplayCode; + DisplayCode = Currentbuf->document_code; +#endif saveBufferBody(Currentbuf, f, TRUE); +#ifdef JP_CHARSET + DisplayCode = old_code; +#endif fclose(f); Currentbuf->sourcefile = tmpf->ptr; }