Gnus development mailing list
 help / color / mirror / Atom feed
From: Shenghuo ZHU <zsh@cs.rochester.edu>
Subject: Re: 0.58 error in multipart.
Date: 01 Dec 1998 00:22:17 -0500	[thread overview]
Message-ID: <2nn258sagm.fsf@zsh.cs.rochester.edu> (raw)
In-Reply-To: <lthfvgea7x.fsf@asfast.com>

>>>>> "Lloyd" == Lloyd Zusman <ljz@asfast.com> writes:

Lloyd> It seems that in some (all?) cases of text/plain decoding
Lloyd> within a multipart message, the `mm-decode-string' function
Lloyd> returns `nil'.  I hope that this patch sheds some light on this
Lloyd> problem.

Sorry, I make a mistake in mm-decode-string. Fixed.

ChangeLog:

Tue Dec  1 00:15:36 1998  Shenghuo ZHU  <zsh@cs.rochester.edu>

	* mm-bodies.el (mm-decode-string): Return original string if not
	decode.

-- 
Shenghuo

:- cut ---------------------------------
--- mm-bodies.el	1998/12/01 05:14:05	1.1
+++ mm-bodies.el	1998/12/01 05:14:44
@@ -172,14 +172,16 @@
 (defun mm-decode-string (string charset)
   "Decode STRING with CHARSET."
   (setq charset (or charset rfc2047-default-charset))
-  (when (featurep 'mule)
-    (let (mule-charset)
-      (when (and charset
-		 (setq mule-charset (mm-charset-to-coding-system charset))
-		 enable-multibyte-characters
-		 (or (not (eq mule-charset 'ascii))
-		     (setq mule-charset rfc2047-default-charset)))
-	(mm-decode-coding-string string mule-charset)))))
+  (or
+   (when (featurep 'mule)
+     (let (mule-charset)
+       (when (and charset
+		  (setq mule-charset (mm-charset-to-coding-system charset))
+		  enable-multibyte-characters
+		  (or (not (eq mule-charset 'ascii))
+		      (setq mule-charset rfc2047-default-charset)))
+	 (mm-decode-coding-string string mule-charset))))
+   string))
 
 (provide 'mm-bodies)
 


  reply	other threads:[~1998-12-01  5:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-01  4:51 Lloyd Zusman
1998-12-01  5:22 ` Shenghuo ZHU [this message]
1998-12-01 15:28   ` Jason L Tibbitts III

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2nn258sagm.fsf@zsh.cs.rochester.edu \
    --to=zsh@cs.rochester.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).