[w3m-dev 03941] fix character encoding for 'v'
* main.c (vwSrc): use document_code as DisplayCode From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2003-07-23 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
|
||||||
|
|
||||||
|
* [w3m-dev 03941] fix character encoding for 'v'
|
||||||
|
* main.c (vwSrc): use document_code as DisplayCode
|
||||||
|
|
||||||
2003-07-23 Yoshinobu Sakane <sakane@d4.bsd.nes.nec.co.jp>
|
2003-07-23 Yoshinobu Sakane <sakane@d4.bsd.nes.nec.co.jp>
|
||||||
|
|
||||||
* [w3m-dev 03939] next/prev visited link
|
* [w3m-dev 03939] next/prev visited link
|
||||||
@@ -7951,4 +7956,4 @@ a * [w3m-dev 03276] compile error on EWS4800
|
|||||||
* release-0-2-1
|
* release-0-2-1
|
||||||
* import w3m-0.2.1
|
* import w3m-0.2.1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.853 2003/07/22 17:24:49 ukai Exp $
|
$Id: ChangeLog,v 1.854 2003/07/22 17:27:19 ukai Exp $
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: main.c,v 1.227 2003/07/22 17:24:49 ukai Exp $ */
|
/* $Id: main.c,v 1.228 2003/07/22 17:27:19 ukai Exp $ */
|
||||||
#define MAINPROGRAM
|
#define MAINPROGRAM
|
||||||
#include "fm.h"
|
#include "fm.h"
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@@ -4531,12 +4531,22 @@ vwSrc(void)
|
|||||||
if (Currentbuf->sourcefile == NULL) {
|
if (Currentbuf->sourcefile == NULL) {
|
||||||
if (Currentbuf->pagerSource &&
|
if (Currentbuf->pagerSource &&
|
||||||
!strcasecmp(Currentbuf->type, "text/plain")) {
|
!strcasecmp(Currentbuf->type, "text/plain")) {
|
||||||
|
#ifdef JP_CHARSET
|
||||||
|
char old_code;
|
||||||
|
#endif
|
||||||
FILE *f;
|
FILE *f;
|
||||||
Str tmpf = tmpfname(TMPF_SRC, NULL);
|
Str tmpf = tmpfname(TMPF_SRC, NULL);
|
||||||
f = fopen(tmpf->ptr, "w");
|
f = fopen(tmpf->ptr, "w");
|
||||||
if (f == NULL)
|
if (f == NULL)
|
||||||
return;
|
return;
|
||||||
|
#ifdef JP_CHARSET
|
||||||
|
old_code = DisplayCode;
|
||||||
|
DisplayCode = Currentbuf->document_code;
|
||||||
|
#endif
|
||||||
saveBufferBody(Currentbuf, f, TRUE);
|
saveBufferBody(Currentbuf, f, TRUE);
|
||||||
|
#ifdef JP_CHARSET
|
||||||
|
DisplayCode = old_code;
|
||||||
|
#endif
|
||||||
fclose(f);
|
fclose(f);
|
||||||
Currentbuf->sourcefile = tmpf->ptr;
|
Currentbuf->sourcefile = tmpf->ptr;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user