Commit ffef7736 authored by rswindell's avatar rswindell
Browse files

Pipe non-binary external program output through rputs() so we get charset

translation "for free". Windows only for now.
parent 9167deff
......@@ -937,9 +937,10 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
lprintf(LOG_ERR,"output buffer overflow");
rd=RingBufFree(&outbuf);
}
if(!(mode&EX_BIN) && term_supports(PETSCII))
petscii_convert(bp, rd);
RingBufWrite(&outbuf, bp, rd);
if(mode&EX_BIN)
RingBufWrite(&outbuf, bp, rd);
else
rputs((char*)bp, rd);
}
} else { // Windows 9x
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment