From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.emacs.bugs Subject: bug#13505: Bug#696026: emacs24: file corruption on saving Date: Sun, 20 Jan 2013 11:31:12 -0600 Message-ID: <87ehhf69sv.fsf@trouble.defaultvalue.org> References: <20121215223809.GA7549@xvii.vinc17.org> <877gn8ijgn.fsf@trouble.defaultvalue.org> <83obgjpzod.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358703127 16077 80.91.229.3 (20 Jan 2013 17:32:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2013 17:32:07 +0000 (UTC) Cc: 696026-forwarded@bugs.debian.org, vincent@vinc17.net, 696026@bugs.debian.org, 13505@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 20 18:32:24 2013 Return-path: Envelope-to: geb-bug-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 1Twykq-0001EM-2V for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Jan 2013 18:32:24 +0100 Original-Received: from localhost ([::1]:34208 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwykY-0001Qy-V3 for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Jan 2013 12:32:06 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwykW-0001Qq-JD for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2013 12:32:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwykV-0004Zw-EI for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2013 12:32:04 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwykV-0004Zp-Bb for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2013 12:32:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TwylR-0006Sa-PE for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2013 12:33:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Rob Browning Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Jan 2013 17:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13505 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13505-submit@debbugs.gnu.org id=B13505.135870313524770 (code B ref 13505); Sun, 20 Jan 2013 17:33:01 +0000 Original-Received: (at 13505) by debbugs.gnu.org; 20 Jan 2013 17:32:15 +0000 Original-Received: from localhost ([127.0.0.1]:41754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Twykg-0006RT-KO for submit@debbugs.gnu.org; Sun, 20 Jan 2013 12:32:14 -0500 Original-Received: from defaultvalue.org ([70.85.129.156]:55886) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Twyke-0006RJ-Ky for 13505@debbugs.gnu.org; Sun, 20 Jan 2013 12:32:13 -0500 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id 74A8190D24; Sun, 20 Jan 2013 11:35:53 -0600 (CST) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id 6A11614E078; Sun, 20 Jan 2013 11:31:12 -0600 (CST) In-Reply-To: <83obgjpzod.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 20 Jan 2013 18:49:38 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:70094 Archived-At: Eli Zaretskii writes: > More to the point: there seems to be a fundamental misunderstanding > here regarding the effect of selecting an encoding at save time. It > sounds like the OP thought that selecting a "literal" encoding, such > as raw-text, which is supposed to leave the binary stream unaltered > (apart of the EOL format), will ensure that a buffer will be saved > exactly as it was originally found on disk. But this is false. What > raw-text and no-conversion do is to write out the _internal_ > representation of each character without any conversions. The > original encoded form of the characters as found on disk at visit time > _cannot_ be recovered by saving with raw-text, because that encoded > form is lost without a trace when the file is _visited_ and decoded > into the internal representation. The only information that's left is > the coding-system used to decode the characters. But since the file's > encoding in this case is inconsistent, that coding-system cannot be > used to save it back (Emacs will not let you do so, as demonstrated in > the report), and therefore the original form cannot be recovered this > way. Ahh, right; that make sense to me. -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4