From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/17421 Path: main.gmane.org!not-for-mail From: Shenghuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: bug: mm-with-unibyte-buffer does not work Date: 26 Sep 1998 03:12:52 -400 Organization: Computer Dept of U Rochester Sender: owner-ding@hpc.uh.edu Message-ID: <2nemszibyj.fsf@zsh.cs.rochester.edu> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035156124 835 80.91.224.250 (20 Oct 2002 23:22:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:22:04 +0000 (UTC) Return-Path: Original-Received: from gizmo.hpc.uh.edu (gizmo.hpc.uh.edu [129.7.102.31]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id DAA28515 for ; Sat, 26 Sep 1998 03:07:14 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (sina.hpc.uh.edu [129.7.3.5]) by gizmo.hpc.uh.edu (8.7.6/8.7.3) with ESMTP id BAF14545; Sat, 26 Sep 1998 01:38:11 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 26 Sep 1998 02:06:59 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [209.195.19.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id CAA15081 for ; Sat, 26 Sep 1998 02:06:49 -0500 (CDT) Original-Received: from cayuga.cs.rochester.edu (cayuga.cs.rochester.edu [192.5.53.209]) by sclp3.sclp.com (8.8.5/8.8.5) with SMTP id DAA28503 for ; Sat, 26 Sep 1998 03:06:43 -0400 (EDT) Original-Received: from slate.cs.rochester.edu (slate.cs.rochester.edu [192.5.53.101]) by cayuga.cs.rochester.edu (8.6.9/O) with ESMTP id DAA06854 for ; Sat, 26 Sep 1998 03:06:42 -0400 Original-Received: from brain.cs.rochester.edu (heart.cs.rochester.edu [192.5.53.109]) by slate.cs.rochester.edu (8.6.9/O) with ESMTP id DAA23350 for ; Sat, 26 Sep 1998 03:06:39 -0400 Original-Received: (from zsh@localhost) by brain.cs.rochester.edu (8.9.0/8.8.5) id DAA04384; Sat, 26 Sep 1998 03:12:54 -0400 Original-To: ding@gnus.org X-Attribution: ZSH Original-Lines: 36 User-Agent: Gnus/5.070033 (Pterodactyl Gnus v0.33) XEmacs/20.4 (Emerald) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:17421 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:17421 In multibyte language enviroment of XEmacs 20.4, press 'o' on a MIME button of binary file, e.g. image file, the output file is not identical to the original one. The reason is that enable-multibyte-characters is not implemented in XEmacs 20.4. A patch attached. -- Shenghuo ---------------------------------------------------------------------- --- ChangeLog 1998/09/26 07:05:04 1.3 +++ ChangeLog 1998/09/26 07:05:22 @@ -1,3 +1,8 @@ +Sat Sep 26 03:04:18 1998 Shenghuo ZHU + + * mm-util.el (mm-with-unibyte-buffer): Make it work in XEmacs + 20.4. + Sat Sep 26 02:03:00 1998 Shenghuo ZHU * gnus-sum.el (gnus-multi-decode-encoded-word-string): Rewrite. --- mm-util.el 1998/09/26 06:42:04 1.1 +++ mm-util.el 1998/09/26 06:56:30 @@ -206,7 +206,8 @@ (get-buffer-create (generate-new-buffer-name " *temp*"))) (unwind-protect (with-current-buffer ,temp-buffer - ,@forms) + (let (buffer-file-coding-system) + ,@forms)) (and (buffer-name ,temp-buffer) (kill-buffer ,temp-buffer)) (setq-default enable-multibyte-characters ,multibyte))))))