From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: buffer-swap-text and multibyteness Date: Tue, 24 Feb 2009 20:48:04 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1235501310 8953 80.91.229.12 (24 Feb 2009 18:48:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Feb 2009 18:48:30 +0000 (UTC) Cc: monnier@iro.umontreal.ca, rms@gnu.org, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 24 19:49:45 2009 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.50) id 1Lc2La-00024t-De for ged-emacs-devel@m.gmane.org; Tue, 24 Feb 2009 19:49:38 +0100 Original-Received: from localhost ([127.0.0.1]:37154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lc2KF-0000L2-Sc for ged-emacs-devel@m.gmane.org; Tue, 24 Feb 2009 13:48:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lc2KA-0000KJ-SD for emacs-devel@gnu.org; Tue, 24 Feb 2009 13:48:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lc2K9-0000K5-8l for emacs-devel@gnu.org; Tue, 24 Feb 2009 13:48:09 -0500 Original-Received: from [199.232.76.173] (port=45610 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lc2K9-0000K1-28 for emacs-devel@gnu.org; Tue, 24 Feb 2009 13:48:09 -0500 Original-Received: from mtaout6.012.net.il ([84.95.2.16]:37907) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lc2K7-0006ZH-MH; Tue, 24 Feb 2009 13:48:07 -0500 Original-Received: from conversion-daemon.i-mtaout6.012.net.il by i-mtaout6.012.net.il (HyperSendmail v2007.08) id <0KFL00L002CDUO00@i-mtaout6.012.net.il>; Tue, 24 Feb 2009 20:48:40 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.160.251]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KFL00B6D2X2U670@i-mtaout6.012.net.il>; Tue, 24 Feb 2009 20:48:40 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) 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:109314 Archived-At: > From: Kenichi Handa > CC: emacs-devel@gnu.org, monnier@iro.umontreal.ca, rms@gnu.org > Date: Tue, 24 Feb 2009 17:09:45 +0900 > > In article , Eli Zaretskii writes: > > > You are right, rmail-cease-edit was too naive in selecting the correct > > encoding. > > > I think I fixed your use-case now, please try. After base64 decoding > > the Latin-1 text and manually decoding the text with > > decode-coding-region, if buffer-file-coding-system cannot safely > > encode the message, Emacs will ask you to select a safe encoding when > > you type C-c C-c. You can also set the correct encoding manually > > before you type C-c C-c. The charset= header is rewritten as needed, > > as part of putting the modified message back into the message > > collection buffer. > > Thank you, I confirmed that this problem is fixed. Thanks for testing it. Btw, while I worked on this, I discovered a strange problem with a coding-system I never heard about before: iso-2022-jp-2. (It was one of the encodings select-safe-coding-system suggested for encoding the text with both Japanese and Latin-1 characters.) Whenever I used iso-2022-jp-2 to encode the edited message back into the mbox buffer, Emacs crashed inside GC. Is something wrong with that coding-system?