From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Emacs text bug Date: Thu, 31 Jan 2013 20:52:56 +0200 Message-ID: <83mwvpchh3.fsf@gnu.org> References: <1359231827550-276577.post@n5.nabble.com> <46B884FF-9FFD-4EB2-86A0-8F2BEDAD1AC3@Web.DE> <1359240188569-276587.post@n5.nabble.com> <3ACFB558-8C4B-4342-B726-775F7A6099F5@Web.DE> <1359242635175-276591.post@n5.nabble.com> <7914BF7E-844F-4F8C-BBE7-7556ACBE861F@Web.DE> <1359654952628-276925.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1359658406 10286 80.91.229.3 (31 Jan 2013 18:53:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jan 2013 18:53:26 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 31 19:53:46 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U0zGb-0001LH-M5 for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2013 19:53:45 +0100 Original-Received: from localhost ([::1]:57938 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0zGJ-0000VP-Im for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2013 13:53:27 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0zGD-0000Si-Do for Help-gnu-emacs@gnu.org; Thu, 31 Jan 2013 13:53:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0zGC-0008I4-AG for Help-gnu-emacs@gnu.org; Thu, 31 Jan 2013 13:53:21 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:32774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0zGB-0008Hk-TQ for Help-gnu-emacs@gnu.org; Thu, 31 Jan 2013 13:53:20 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MHI00J0072ZMX00@a-mtaout22.012.net.il> for Help-gnu-emacs@gnu.org; Thu, 31 Jan 2013 20:53:07 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MHI00J8174ICM80@a-mtaout22.012.net.il> for Help-gnu-emacs@gnu.org; Thu, 31 Jan 2013 20:53:06 +0200 (IST) In-reply-to: <1359654952628-276925.post@n5.nabble.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88897 Archived-At: > Date: Thu, 31 Jan 2013 09:55:52 -0800 (PST) > From: drain > > Still problems. > > (1) revert-buffer-with-coding system RET > (2) utf-8 RET > (3) "Revert buffer from file[...]" y RET > (4) [characters appear as they should now] > (5) [make change so I can save] > (6) save-buffer > (7) "Select coding system (default raw-text)" utf-8 > (8) "wrote buffer [...]" > (9) kill-buffer RET foo.org RET > (10) find-file foo.org RET, sees it's back to raw-text, not utf-8, with > characters mangled. Evidently, you have in that file bytes that are not valid UTF-8 sequences. You need to fix them (the "Select coding system ..." prompt tells you which characters cannot be encoded in UTF-8 -- those are the ones you need to fix.).