From 6680a450ae649b3ca50c600afba8b54daf9ac9d0 Mon Sep 17 00:00:00 2001 From: "Rob Swindell (on Windows 11)" <rob@synchro.net> Date: Fri, 25 Apr 2025 18:24:12 -0700 Subject: [PATCH] Don't add CP437 QWKnet tagline glyph when message is explicitly US-ASCII e.g. when message was posted via NNTP with: Content-Type: text/plain; charset=US-ASCII Assume the poster wants the message to remain US-ASCII, so let's not pollute the message with CP437 chars and invalidate the header and cause unnecessary downstream issues. --- src/sbbs3/msgtoqwk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/msgtoqwk.cpp b/src/sbbs3/msgtoqwk.cpp index ca9b19fd15..3a9194015a 100644 --- a/src/sbbs3/msgtoqwk.cpp +++ b/src/sbbs3/msgtoqwk.cpp @@ -507,7 +507,7 @@ int sbbs_t::msgtoqwk(smbmsg_t* msg, FILE *qwk_fp, int mode, smb_t* smb snprintf(str, sizeof str, "%s---%c", text[QWKEndOfMessage], qwk_newline); /* so add one */ else SAFECOPY(str, text[QWKEndOfMessage]); - if (cfg.sub[subnum]->misc & SUB_ASCII) + if ((cfg.sub[subnum]->misc & SUB_ASCII) || smb_msg_is_ascii(msg)) ch = '*'; else ch = CP437_BLACK_SQUARE; -- GitLab