diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-15 16:46:07 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-15 16:46:07 +0000 |
commit | 7aa417f6d55ba9a158814b01b67abce24a27252f (patch) | |
tree | 0e2c9ac18f8500f833221a77cf06bf08a958ad3e /file.c | |
parent | fix indent (diff) | |
download | w3m-7aa417f6d55ba9a158814b01b67abce24a27252f.tar.gz w3m-7aa417f6d55ba9a158814b01b67abce24a27252f.zip |
[w3m-dev 03441] charset of save file
* file.c (_doFileCopy): use conv_from_system()
(doFileSave): conv_from_system()
* main.c (DownloadListBuffer): conv_from_system()
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | file.c | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.120 2002/11/15 15:57:16 ukai Exp $ */ +/* $Id: file.c,v 1.121 2002/11/15 16:46:09 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include "myctype.h" @@ -7214,13 +7214,14 @@ _doFileCopy(char *tmpf, char *defstr, int download) return; } if (checkCopyFile(tmpf, p) < 0) { - msg = Sprintf("Can't copy. %s and %s are identical.", tmpf, p); + msg = Sprintf("Can't copy. %s and %s are identical.", + conv_from_system(tmpf), conv_from_system(p)); disp_err_message(msg->ptr, FALSE); return; } if (!download) { if (_MoveFile(tmpf, p) < 0) { - msg = Sprintf("Can't save to %s", p); + msg = Sprintf("Can't save to %s", conv_from_system(p)); disp_err_message(msg->ptr, FALSE); } return; @@ -7251,7 +7252,7 @@ _doFileCopy(char *tmpf, char *defstr, int download) } if (!stat(tmpf, &st)) size = st.st_size; - addDownloadList(pid, tmpf, p, lock, size); + addDownloadList(pid, conv_from_system(tmpf), p, lock, size); } else { q = searchKeyData(); @@ -7314,13 +7315,14 @@ doFileSave(URLFile uf, char *defstr) if (checkOverWrite(p) < 0) return; if (checkSaveFile(uf.stream, p) < 0) { - msg = Sprintf("Can't save. Load file and %s are identical.", p); + msg = Sprintf("Can't save. Load file and %s are identical.", + conv_from_system(p)); disp_err_message(msg->ptr, FALSE); return; } /* * if (save2tmp(uf, p) < 0) { - * msg = Sprintf("Can't save to %s", p); + * msg = Sprintf("Can't save to %s", conv_from_system(p)); * disp_err_message(msg->ptr, FALSE); * } */ @@ -7349,7 +7351,8 @@ doFileSave(URLFile uf, char *defstr) unlink(lock); exit(0); } - addDownloadList(pid, uf.url, p, lock, current_content_length); + addDownloadList(pid, uf.url, p, lock, + current_content_length); } else { q = searchKeyData(); |