Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit 5617b0f2 authored by rswindell's avatar rswindell
Browse files

If SBBSecho imports a message with a "CHRS" control line with a value of

"UTF-8", set the msg's auxattr MSG_HFIELDS_UTF8 flag because FTS-5003 states:
  "The character set identifier applies to all parts of the message,
   including the header information and the control lines like origin
   and tear line."
parent 1da741bb
......@@ -3506,8 +3506,11 @@ int fmsgtosmsg(char* fbuf, fmsghdr_t* hdr, uint user, uint subnum)
while(m<length && fbuf[m]!='\r') m++;
while(m && fbuf[m-1]<=' ' && fbuf[m-1]>=0) m--;
if(m>l) {
smb_hfield(&msg, FIDOCHARSET, (ushort)(m-l), fbuf+l);
msg.hdr.auxattr |= MSG_HFIELDS_UTF8;
else if(!strncmp((char *)fbuf+l+1, "CHARSET:", 8)) {
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