Skip to content
Snippets Groups Projects
Commit 7e00f2c8 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Create FTN charset of "ASCII 1" when the imported message is explicitly ASCII

(e.g. via "Content-Type: text/plain; charset=US-ASCII" header field)

... previously we would default to "CP437" for the created FTN charset.
parent 6680a450
Branches
Tags
No related merge requests found
Pipeline #8902 passed
......@@ -484,6 +484,8 @@ bool sbbs_t::qwk_import_msg(FILE *qwk_fp, char *hdrblk, uint blocks
const char* charset = FIDO_CHARSET_CP437;
if (msg->hdr.auxattr & MSG_HFIELDS_UTF8)
charset = FIDO_CHARSET_UTF8;
else if (smb_msg_is_ascii(msg) && str_is_ascii(body) && str_is_ascii(tail))
charset = FIDO_CHARSET_ASCII;
smb_hfield_str(msg, FIDOCHARSET, charset);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment