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

Remove redundant re-determination of UTF-8 encoded and exported messages

parent c3b47aca
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
Pipeline #6319 passed
......@@ -510,7 +510,7 @@ int sbbs_t::msgtoqwk(smbmsg_t* msg, FILE *qwk_fp, int mode, smb_t* smb
safe_snprintf(tmp,sizeof(tmp)," %c \1g%.10s\1n %c %.127s%c"
,ch,VERSION_NOTICE,ch,cfg.sub[subnum]->tagline,qwk_newline);
char* tail = tmp;
if((smb_msg_is_utf8(msg) || (msg->hdr.auxattr & MSG_HFIELDS_UTF8)) && (mode&QM_UTF8)) {
if(is_utf8) {
if(cp437_to_utf8_str(tmp, msghdr_utf8_text, sizeof(msghdr_utf8_text), /* min-char-val: */'\x80') > 1)
tail = msghdr_utf8_text;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment