質問編集履歴
1
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
src_len = strlen(filename);
|
25
25
|
code = argv[2];
|
26
26
|
|
27
|
-
fp = fopen(
|
27
|
+
fp = fopen(filename,"r");
|
28
28
|
while(fgets(src,L,fp) != NULL)
|
29
29
|
{
|
30
30
|
|
@@ -39,7 +39,7 @@
|
|
39
39
|
buf_out = dst;
|
40
40
|
|
41
41
|
/* UTF-8 から Shift-JIS への変換器を作成 */
|
42
|
-
conv = iconv_open("Shift-JIS",
|
42
|
+
conv = iconv_open("Shift-JIS",code );
|
43
43
|
|
44
44
|
/* 変換 */
|
45
45
|
iconv(conv, &buf_in, &src_len, &buf_out, &dst_len);
|