* EOL bug in attaching binary file
@ 1999-11-05 3:40 Shenghuo ZHU
0 siblings, 0 replies; only message in thread
From: Shenghuo ZHU @ 1999-11-05 3:40 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 316 bytes --]
pGnus in XEmacs may corrupt attached binary file. It seems OK for
pGnus in Emacs.
This (committed) patch is highly recommended if you are using pGnus in
XEmacs.
--
Shenghuo
1999-11-04 22:20:35 Shenghuo ZHU <zsh@cs.rochester.edu>
* mml.el (mml-generate-mime-1): Read attached binary file in
binary mode.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 97-122.diff --]
[-- Type: text/x-patch, Size: 740 bytes --]
Index: mml.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/mml.el,v
retrieving revision 5.29
retrieving revision 5.30
diff -u -r5.29 -r5.30
--- mml.el 1999/09/27 15:19:03 5.29
+++ mml.el 1999/11/05 03:36:48 5.30
@@ -242,7 +242,8 @@
(insert-buffer-substring (cdr (assq 'buffer cont))))
((and (setq filename (cdr (assq 'filename cont)))
(not (equal (cdr (assq 'nofile cont)) "yes")))
- (mm-insert-file-contents filename nil nil nil nil t))
+ (let ((coding-system-for-read mm-binary-coding-system))
+ (mm-insert-file-contents filename nil nil nil nil t)))
(t
(insert (cdr (assq 'contents cont)))))
(setq encoding (mm-encode-buffer type)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-11-05 3:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-05 3:40 EOL bug in attaching binary file Shenghuo ZHU
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).