From 5a8dabecb4c9ab93194fff4dcd9d6f12f550e02a Mon Sep 17 00:00:00 2001 From: hiro Date: Thu, 24 Nov 2005 10:44:35 +0000 Subject: win32: don't uncanonicalize text files when decoding. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@775 ee746299-78ed-0310-b773-934348b2243d --- ChangeLog | 5 +++++ ChangeLog.ja | 5 +++++ libsylph/procmime.c | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 12214baa..6ad9141a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-24 + + * libsylph/procmime.c: procmime_decode_content(): win32: don't + uncanonicalize text files. + 2005-11-24 * libsylph/pop.c diff --git a/ChangeLog.ja b/ChangeLog.ja index 1fd49b0c..f7db97ee 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,8 @@ +2005-11-24 + + * libsylph/procmime.c: procmime_decode_content(): win32: テキスト + ファイルを非正規化しないようにした。 + 2005-11-24 * libsylph/pop.c diff --git a/libsylph/procmime.c b/libsylph/procmime.c index da7e8b1f..91500972 100644 --- a/libsylph/procmime.c +++ b/libsylph/procmime.c @@ -575,6 +575,7 @@ FILE *procmime_decode_content(FILE *outfp, FILE *infp, MimeInfo *mimeinfo) Base64Decoder *decoder; gboolean uncanonicalize = FALSE; FILE *tmpfp = outfp; +#ifndef G_OS_WIN32 ContentType content_type; content_type = procmime_scan_mime_type(mimeinfo->content_type); @@ -589,6 +590,7 @@ FILE *procmime_decode_content(FILE *outfp, FILE *infp, MimeInfo *mimeinfo) return NULL; } } +#endif decoder = base64_decoder_new(); while (fgets(buf, sizeof(buf), infp) != NULL && @@ -604,6 +606,7 @@ FILE *procmime_decode_content(FILE *outfp, FILE *infp, MimeInfo *mimeinfo) } base64_decoder_free(decoder); +#ifndef G_OS_WIN32 if (uncanonicalize) { rewind(tmpfp); while (fgets(buf, sizeof(buf), tmpfp) != NULL) { @@ -612,6 +615,7 @@ FILE *procmime_decode_content(FILE *outfp, FILE *infp, MimeInfo *mimeinfo) } fclose(tmpfp); } +#endif } else if (mimeinfo->encoding_type == ENC_X_UUENCODE) { gchar outbuf[BUFFSIZE]; gint len; -- cgit v1.2.3