From 6a8add52d368483524f08d36e132184b36198bc1 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 23 Feb 2006 11:51:18 +0000 Subject: fix quoted-printable (_ means space only in rfc2047) --- src/cmd/upas/nfs/a.h | 1 + src/cmd/upas/nfs/decode.c | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/cmd/upas/nfs/a.h b/src/cmd/upas/nfs/a.h index d565b028..3c81deb0 100644 --- a/src/cmd/upas/nfs/a.h +++ b/src/cmd/upas/nfs/a.h @@ -31,6 +31,7 @@ enum { NoEncoding, QuotedPrintable, + QuotedPrintableU, Base64, }; diff --git a/src/cmd/upas/nfs/decode.c b/src/cmd/upas/nfs/decode.c index 0e46dbff..a98ad8a2 100644 --- a/src/cmd/upas/nfs/decode.c +++ b/src/cmd/upas/nfs/decode.c @@ -21,7 +21,7 @@ unhex(char *s) } int -decqp(uchar *out, int lim, char *in, int n) +_decqp(uchar *out, int lim, char *in, int n, int underscores) { char *p, *ep; uchar *eout, *out0; @@ -29,7 +29,7 @@ decqp(uchar *out, int lim, char *in, int n) out0 = out; eout = out+lim; for(p=in, ep=in+n; p