around the wrong way?

This commit is contained in:
Andrew Pamment 2017-04-23 13:16:34 +10:00
parent 7c4b414299
commit 10bc57c164

View File

@ -314,9 +314,9 @@ void runexternal(struct user_record *user, char *cmd, int stdio, char *argv[], c
write(master, outbuf, g);
} else {
if (user->codepage == 0) {
ic = iconv_open("CP437", codepage);
ic = iconv_open(codepage, "CP437");
} else {
ic = iconv_open("UTF-8", codepage);
ic = iconv_open(codepage, "UTF-8");
}
ptr1 = outbuf;
ptr2 = (char *)malloc((g + 1) * 2);
@ -349,9 +349,9 @@ void runexternal(struct user_record *user, char *cmd, int stdio, char *argv[], c
write(door_out, outbuf, g);
} else {
if (user->codepage == 0) {
ic = iconv_open(codepage, "CP437");
ic = iconv_open("CP437", codepage);
} else {
ic = iconv_open(codepage, "UTF-8");
ic = iconv_open("UTF-8", codepage);
}
ptr1 = outbuf;
ptr2 = (char *)malloc((g + 1) * 2);