summaryrefslogtreecommitdiffstats
path: root/rfc2045
diff options
context:
space:
mode:
Diffstat (limited to 'rfc2045')
-rw-r--r--rfc2045/configure.ac2
-rw-r--r--rfc2045/makemime.c3
-rw-r--r--rfc2045/rfc2045reply.c4
3 files changed, 4 insertions, 5 deletions
diff --git a/rfc2045/configure.ac b/rfc2045/configure.ac
index 1377e75..2957ed2 100644
--- a/rfc2045/configure.ac
+++ b/rfc2045/configure.ac
@@ -79,7 +79,7 @@ AC_DEFINE_UNQUOTED(RFC2045VER,"$version", [ Package that uses librfc2045.a ])
AC_ARG_ENABLE(mimecharset,
[ --enable-mimecharset=charset Default MIME charset to set on new messages],
- RFC2045CHARSET="$enableval", RFC2045CHARSET="iso-8859-1")
+ RFC2045CHARSET="$enableval", RFC2045CHARSET="utf-8")
CFLAGS="$CFLAGS -I.. -I${srcdir}/.."
CXXFLAGS="$CXXFLAGS -I.. -I${srcdir}/.."
diff --git a/rfc2045/makemime.c b/rfc2045/makemime.c
index e535556..89d8dbc 100644
--- a/rfc2045/makemime.c
+++ b/rfc2045/makemime.c
@@ -762,7 +762,7 @@ const char *orig_charset=m->textplaincharset;
if (m->contentname && *m->contentname)
{
const char *chset=m->textplaincharset ? m->textplaincharset
- : "iso-8859-1";
+ : "utf-8";
rfc2231_attrCreate("name", m->contentname, chset, NULL,
do_printRfc2231Attr, m);
@@ -1108,4 +1108,3 @@ static void opencreatemultipartmime(struct mimestruct *m)
m->inputfp1=openfile_or_pipe(m->inputfile1, "r");
openoutput(m);
}
-
diff --git a/rfc2045/rfc2045reply.c b/rfc2045/rfc2045reply.c
index da0d981..d145d06 100644
--- a/rfc2045/rfc2045reply.c
+++ b/rfc2045/rfc2045reply.c
@@ -780,7 +780,7 @@ static int mkforward(struct rfc2045_mkreplyinfo *ri)
char *p=rfc2047_encode_str(ri->forwarddescr,
ri->charset ?
ri->charset
- : "iso-8859-1",
+ : "utf-8",
rfc2047_qp_allow_any
);
@@ -1525,7 +1525,7 @@ static void copyheaders(struct rfc2045_mkreplyinfo *ri)
char *header, *value;
- writes(ri, "\nContent-Type: text/rfc822-headers; charset=\"iso-8859-1\"\n"
+ writes(ri, "\nContent-Type: text/rfc822-headers; charset=\"utf-8\"\n"
"Content-Disposition: attachment\n"
"Content-Transfer-Encoding: 8bit\n\n"
);