From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uday S Reddy Newsgroups: gmane.emacs.devel Subject: Re: bug#7517: 24.0.50; repeated crash under Mac OS X Date: Mon, 3 Jan 2011 04:50:45 +0000 Message-ID: <19745.21925.247000.562416@gargle.gargle.HOWL> References: <87vd2dyzfj.fsf@stupidchicken.com> <4D1B22A1.6080202@swipnet.se> <4D1B27AF.7010701@swipnet.se> <4D1C6E7D.2040300@swipnet.se> <4D1D0172.8080404@swipnet.se> <4D1DB555.5080002@swipnet.se> <4D1DBD4A.6010303@swipnet.se> <83d3oiaysj.fsf@gnu.org> <4D1DD655.1040809@swipnet.se> <83aajmaxme.fsf@gnu.org> <4D1E5987.2000502@swipnet.se> <83mxnkq1ej.fsf@gnu.org> <8362u8pkg6.fsf__47242.3368752517$1293906238$gmane$org@gnu.org> <83y674ne9h.fsf@gnu.org> <19744.58213.935000.469856@gargle.gargle.HOWL> <83sjxbnekt.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1294030271 21556 80.91.229.12 (3 Jan 2011 04:51:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 Jan 2011 04:51:11 +0000 (UTC) Cc: Uday S Reddy , user.emacs@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 03 05:51:00 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 1PZcNm-0004d1-R6 for ged-emacs-devel@m.gmane.org; Mon, 03 Jan 2011 05:50:59 +0100 Original-Received: from localhost ([127.0.0.1]:32928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZcNm-0001QD-ED for ged-emacs-devel@m.gmane.org; Sun, 02 Jan 2011 23:50:58 -0500 Original-Received: from [140.186.70.92] (port=55935 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZcNh-0001Q8-LF for emacs-devel@gnu.org; Sun, 02 Jan 2011 23:50:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZcNg-0000Rx-FC for emacs-devel@gnu.org; Sun, 02 Jan 2011 23:50:53 -0500 Original-Received: from sun61.bham.ac.uk ([147.188.128.150]:55447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZcNg-0000Rp-8u; Sun, 02 Jan 2011 23:50:52 -0500 Original-Received: from [147.188.128.127] (helo=bham.ac.uk) by sun61.bham.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1PZcNe-0003V1-N8; Mon, 03 Jan 2011 04:50:50 +0000 Original-Received: from mx1.cs.bham.ac.uk ([147.188.192.53]) by bham.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1PZcNe-0002zA-DF; Mon, 03 Jan 2011 04:50:50 +0000 Original-Received: from gromit.cs.bham.ac.uk ([147.188.193.16] helo=MARUTI.cs.bham.ac.uk) by mx1.cs.bham.ac.uk with esmtp (Exim 4.51) id 1PZcNd-0005xB-TG; Mon, 03 Jan 2011 04:50:50 +0000 In-Reply-To: <83sjxbnekt.fsf@gnu.org> X-Mailer: VM 8.1.93a under 23.2.1 (i386-mingw-nt5.1.2600) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:134189 Archived-At: Eli Zaretskii writes: > Why, doesn't >=20 > (coding-system-get FOO :mime-charset) >=20 > work for you, or isn't TRT in this case=3F The FOO in this case is a coding-system=3F But VM doesn't know what coding-system to use. It has to find the coding-system based on the mime-charset. It received a string that is encoded in the MIME charset "iso-8859-8-i". It tried to find an Emacs coding system that had this mime-charset property. But there wasn't any. So it gave up. That was the problem the OP ran into orignally. Note that (coding-system "iso-8859-8-i" :mime-charset) returns "iso-8859-8". =20 What I am doing now is to see if there is a coding-system with the same name as the mime-charset. That works. So, as long as you continue to define aliases for coding-systems that correspond to mime-charset names, we will be fine. When I don't find a coding-system with the given name, I am using 'undecided, which is what I think you reocmmended. This at least gets us out of the unibyte string problem, even though what is produced is normally gibberish. > > However, OP reports that the frame title says "bad coding" or some > > such incantation, even though the buffer name shows up correctly > > inside Emacs. Perhaps it is a problem in the interface between Ema= cs > > and the OS=3F >=20 > No, that's our way to defend ourselves against buffer names that are > unibyte strings, to avoid a crash that was the trigger for this bug. > If the unibyte buffer name is now solved, the "bad coding" text will > never show up. That is what I thought. But the OP is getting the "bad coding" text even if a multibyte string is used as the buffer name. So, perhaps there is a still problem there. The problem should show up if you do (generate-new-buffer "=D7=A9=D7=95=D7=9C=D7=97 =D7=93=D7=95=D7=90=D7=A8= =D7=90=D7=9C=D7=A7=D7=98=D7=A8=D7=95=D7=A0=D7=99") and switch to that buffer Emacs. (I hope my string makes it through VM + mail-mode without corruption!) Cheers, Uday