From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Lillibridge Newsgroups: gmane.emacs.devel Subject: Re: Rmail and the raw-text coding system Date: Mon, 17 Jan 2011 14:31:07 -0800 Message-ID: References: Reply-To: mark.lillibridge@hp.com NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1295303498 10151 80.91.229.12 (17 Jan 2011 22:31:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 Jan 2011 22:31:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 17 23:31:33 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pexbo-0001RF-Np for ged-emacs-devel@m.gmane.org; Mon, 17 Jan 2011 23:31:32 +0100 Original-Received: from localhost ([127.0.0.1]:36731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pexbo-0002fL-0O for ged-emacs-devel@m.gmane.org; Mon, 17 Jan 2011 17:31:32 -0500 Original-Received: from [140.186.70.92] (port=60831 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PexbZ-0002dn-CU for emacs-devel@gnu.org; Mon, 17 Jan 2011 17:31:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PexbX-0003vh-Uv for emacs-devel@gnu.org; Mon, 17 Jan 2011 17:31:17 -0500 Original-Received: from gundega.hpl.hp.com ([192.6.19.190]:53951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PexbX-0003v0-In for emacs-devel@gnu.org; Mon, 17 Jan 2011 17:31:15 -0500 Original-Received: from mailhub-pa1.hpl.hp.com (mailhub-pa1.hpl.hp.com [15.25.115.25]) by gundega.hpl.hp.com (8.14.3/8.14.3/HPL-PA Relay) with ESMTP id p0HMV95b005926 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 17 Jan 2011 14:31:10 -0800 Original-Received: from ts-rhel5 (ts-rhel5.hpl.hp.com [15.25.118.27]) by mailhub-pa1.hpl.hp.com (8.14.3/8.14.3/HPL-PA Hub) with ESMTP id p0HMV7ut030053; Mon, 17 Jan 2011 14:31:08 -0800 In-reply-to: (message from Stefan Monnier on Mon, 17 Jan 2011 14:19:10 -0500) X-Scanned-By: MIMEDefang 2.69 on 15.0.48.190 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:134672 Archived-At: Stefan wrote: > >> > I assume it did so because the buffer contained "invalid" code > >> > points. > >> That would mean that the BABYL file is corrupted. Is it? > > > Not as far as I can tell. Weird characters are displayed for some > > messages, but that is normal with Rmail 22 as it doesn't understand > > MIME. I believe the use of raw-text does not lose data. > > The BABYL file is supposed to use the emacs-mule encoding. So if it > contains invalid emacs-mule byte sequences, it presumably means > it's corrupted. Of course, maybe they are valid sequences which > Emacs23/24 rejects by mistake, or maybe there's yet something else > going on. > > But AFAIK BABYL files use a single encoding for the whole file, and > since around Emacs-21.x that single encoding is supposed to be > emacs-mule (and I seem to remember that the BABYL file is supposed to > contain an annotation at the very beginning saying it's using > emacs-mule, if so). Arguably, it is a Rmail 22 bug that some BABYL files are encoded using raw-text. This does not necessarily make them "corrupted". I have over 85 such files so this problem seems to be fairly common. I haven't tried to figure out the logic Emacs 22 uses when trying to decide if the current buffer can be written out as emacs-mule. The weird code points is just a guess on my part at this point. - Mark