From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62102 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: mm-with-unibyte-current-buffer is bad for Emacs 23 Date: Tue, 28 Feb 2006 18:48:16 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1141120843 31317 80.91.229.2 (28 Feb 2006 10:00:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Feb 2006 10:00:43 +0000 (UTC) Original-X-From: ding-owner+m10630@lists.math.uh.edu Tue Feb 28 11:00:39 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FE1e0-0005Li-TS for ding-account@gmane.org; Tue, 28 Feb 2006 10:59:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FE1dq-0004Q0-00; Tue, 28 Feb 2006 03:59:38 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FE1Sy-0004Ps-00 for ding@lists.math.uh.edu; Tue, 28 Feb 2006 03:48:24 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FE1Sw-0006oz-PC for ding@lists.math.uh.edu; Tue, 28 Feb 2006 03:48:24 -0600 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FE1Sv-00056A-00 for ; Tue, 28 Feb 2006 10:48:21 +0100 Original-Received: from [205.234.185.198] (port=54090 helo=mail.jpl.org) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1FE1Su-00030g-U3 for ding@gnus.org; Tue, 28 Feb 2006 03:48:21 -0600 Original-To: ding@gnus.org X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/23.0.0 (gnu/linux) Cancel-Lock: sha1:z7K1gDyolHR6dRaztP29Dgsl/pc= X-Hashcash: 1:20:060228:ding@gnus.org::T6b0RTQx46T5bXOF:00002QK9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62102 Archived-At: Hi, The macro `mm-with-unibyte-current-buffer' is used here and there in Gnus. In Emacs 23, I realized there is a possibility that it breaks non-ASCII text. For instance: (with-temp-buffer (set-buffer-multibyte t) (insert "=C0=B5") (encode-coding-region (point-min) (point-max) 'iso-8859-1) (mm-with-unibyte-current-buffer (ignore)) (decode-coding-string (buffer-string) 'iso-8859-1)) =3D> "=B5" It also happens for text other than Latin-1. I haven't encountered this problem yet actually when using Gnus, though. Regards,