GNU bug report logs - #13505
Bug#696026: emacs24: file corruption on saving

Previous Next

Package: emacs;

Reported by: Rob Browning <rlb <at> defaultvalue.org>

Date: Sun, 20 Jan 2013 04:11:02 UTC

Severity: normal

Merged with 13377

Found in version 24.3.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 13505 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Vincent Lefevre <vincent <at> vinc17.net>
Cc: 696026-forwarded <at> bugs.debian.org, handa <at> gnu.org, 696026 <at> bugs.debian.org,
	rlb <at> defaultvalue.org, 13505 <at> debbugs.gnu.org
Subject: Re: bug#13505: Bug#696026: emacs24: file corruption on saving
Date: Sun, 20 Jan 2013 23:40:14 +0200
> Date: Sun, 20 Jan 2013 22:25:08 +0100
> From: Vincent Lefevre <vincent <at> vinc17.net>
> Cc: Rob Browning <rlb <at> defaultvalue.org>, Kenichi Handa <handa <at> gnu.org>,
> 	13505 <at> debbugs.gnu.org, 696026-forwarded <at> bugs.debian.org,
> 	696026 <at> bugs.debian.org
> 
> On 2013-01-20 18:49:38 +0200, Eli Zaretskii wrote:
> > Personally, I don't think there's a bug here.  It's a cockpit error.
> 
> Perhaps it isn't a bug at save time. But then, selecting a lossy
> encoding by default when visiting the file is the bug (and really
> a regression), particularly if this isn't clearly told to the user.

The encoding isn't lossy.

In any case, I don't really understand your proposal.  Suppose the
file was indeed encoded in in-is13194-devanagari, would you argue then
that selecting it would be incorrect or undesirable behavior?

> Actually this is related, since the lossy encoding becomes a real
> problem only at save time (and for copy-paste I assume, though the
> file doesn't get overwritten by that).

It is only a problem when you try to save or otherwise output it
(e.g., send in an email).

But what you should do then is "C-x RET r raw-text RET", and recover.
That is the only way to avoid corruption in files that use
inconsistent encoding.




This bug report was last modified 11 years and 228 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.