Bug#696026: emacs24: file corruption on saving

2013-09-26 Thread Vincent Lefevre
Control: fixed -1 24.3+1-1.1 On 2013-09-26 13:04:42 -0500, Rob Browning wrote: > Closing, since the fix has made it in to 24.3. > > 2013-01-20 Andreas Schwab > > * coding.c (detect_coding_iso_2022): Move back mis-reordered code > at check_extra_latin label. (Bug#13505) I c

Bug#696026: bug#13505: Bug#696026: emacs24: file corruption on saving

2013-01-22 Thread Eli Zaretskii
> Date: Tue, 22 Jan 2013 03:35:57 +0100 > From: Vincent Lefevre > Cc: r...@defaultvalue.org, ha...@gnu.org, 13...@debbugs.gnu.org, > 696026-forwar...@bugs.debian.org, 696...@bugs.debian.org > > > > > > | The original encoded form of the characters as found on disk at > > > > > | visit time

Bug#696026: bug#13505: Bug#696026: emacs24: file corruption on saving

2013-01-21 Thread Vincent Lefevre
On 2013-01-21 19:55:20 +0200, Eli Zaretskii wrote: > > Date: Mon, 21 Jan 2013 05:14:10 +0100 > > From: Vincent Lefevre > > Cc: r...@defaultvalue.org, ha...@gnu.org, 13...@debbugs.gnu.org, > > 696026-forwar...@bugs.debian.org, 696...@bugs.debian.org > > > > On 2013-01-21 05:48:14 +0200, Eli Za

Bug#696026: bug#13505: Bug#696026: emacs24: file corruption on saving

2013-01-21 Thread Eli Zaretskii
> Date: Mon, 21 Jan 2013 05:14:10 +0100 > From: Vincent Lefevre > Cc: r...@defaultvalue.org, ha...@gnu.org, 13...@debbugs.gnu.org, > 696026-forwar...@bugs.debian.org, 696...@bugs.debian.org > > On 2013-01-21 05:48:14 +0200, Eli Zaretskii wrote: > > > You said: > > > > > > | The original en

Bug#696026: bug#13505: Bug#696026: emacs24: file corruption on saving

2013-01-20 Thread Vincent Lefevre
On 2013-01-21 05:48:14 +0200, Eli Zaretskii wrote: > > You said: > > > > | 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_ > > ^^

Bug#696026: bug#13505: Bug#696026: emacs24: file corruption on saving

2013-01-20 Thread Eli Zaretskii
> Date: Sun, 20 Jan 2013 23:22:11 +0100 > From: Vincent Lefevre > Cc: r...@defaultvalue.org, ha...@gnu.org, 13...@debbugs.gnu.org, > 696026-forwar...@bugs.debian.org, 696...@bugs.debian.org > > On 2013-01-20 23:10:08 +0100, Vincent Lefevre wrote: > > But Emacs should clearly tell the user w

Bug#696026: bug#13505: Bug#696026: emacs24: file corruption on saving

2013-01-20 Thread Eli Zaretskii
> Date: Sun, 20 Jan 2013 23:10:08 +0100 > From: Vincent Lefevre > Cc: r...@defaultvalue.org, ha...@gnu.org, 13...@debbugs.gnu.org, > 696026-forwar...@bugs.debian.org, 696...@bugs.debian.org > > On 2013-01-20 23:40:14 +0200, Eli Zaretskii wrote: > > > Date: Sun, 20 Jan 2013 22:25:08 +0100 >

Bug#696026: bug#13505: Bug#696026: emacs24: file corruption on saving

2013-01-20 Thread Rob Browning
Andreas Schwab writes: > Eli Zaretskii writes: > >> I didn't research the reason why Emacs 24 autodetects this encoding, >> and whether this is on purpose. > > It's a bug, fixed now. Great, and thanks. -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2011-07-10 E6A9 DA3C C9FD 1F

Bug#696026: bug#13505: Bug#696026: emacs24: file corruption on saving

2013-01-20 Thread Andreas Schwab
Eli Zaretskii writes: > I didn't research the reason why Emacs 24 autodetects this encoding, > and whether this is on purpose. It's a bug, fixed now. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for somethi

Bug#696026: bug#13505: Bug#696026: emacs24: file corruption on saving

2013-01-20 Thread Vincent Lefevre
On 2013-01-20 23:10:08 +0100, Vincent Lefevre wrote: > But Emacs should clearly tell the user what to do after C-x C-s and > clearly say when there can be data loss. Currently it says: [...] In fact, I fear that this may not be sufficient, because some data loss silently occurs when visiting the f

Bug#696026: bug#13505: Bug#696026: emacs24: file corruption on saving

2013-01-20 Thread Vincent Lefevre
On 2013-01-20 23:40:14 +0200, Eli Zaretskii wrote: > > Date: Sun, 20 Jan 2013 22:25:08 +0100 > > From: Vincent Lefevre > > Cc: Rob Browning , Kenichi Handa , > > 13...@debbugs.gnu.org, 696026-forwar...@bugs.debian.org, > > 696...@bugs.debian.org > > > > On 2013-01-20 18:49:38 +0200, Eli Z

Bug#696026: bug#13505: Bug#696026: emacs24: file corruption on saving

2013-01-20 Thread Eli Zaretskii
> Date: Sun, 20 Jan 2013 22:25:08 +0100 > From: Vincent Lefevre > Cc: Rob Browning , Kenichi Handa , > 13...@debbugs.gnu.org, 696026-forwar...@bugs.debian.org, > 696...@bugs.debian.org > > On 2013-01-20 18:49:38 +0200, Eli Zaretskii wrote: > > Personally, I don't think there's a bug h

Bug#696026: bug#13505: Bug#696026: emacs24: file corruption on saving

2013-01-20 Thread Vincent Lefevre
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 cle

Bug#696026: bug#13505: Bug#696026: emacs24: file corruption on saving

2013-01-20 Thread Rob Browning
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 una

Bug#696026: bug#13505: Bug#696026: emacs24: file corruption on saving

2013-01-20 Thread Eli Zaretskii
> From: Rob Browning > Date: Sat, 19 Jan 2013 22:09:28 -0600 > Cc: 696026-forwar...@bugs.debian.org, Vincent Lefevre , > 696...@bugs.debian.org > > Vincent Lefevre writes: > > > Package: emacs24 > > Version: 24.2+1-1 > > Severity: grave > > Justification: causes non-serious data loss > >

Bug#696026: emacs24: file corruption on saving

2013-01-19 Thread Rob Browning
(If possible, please preserve the *-forwarded address in any replies.) The following bug was reported to Debian. I've tested both the Debian emacs24 package, and current upstream emacs-24, as of: Author: Leo Liu Date: Sat Jan 19 02:35:44 2013 +0800 Prune erroneous values in dired-get

Bug#696026: emacs24: file corruption on saving

2012-12-15 Thread Vincent Lefevre
Package: emacs24 Version: 24.2+1-1 Severity: grave Justification: causes non-serious data loss The file "file1" (attached) has the following contents: 6c e2 80 99 c3 a9 0a 74 65 73 74 e9 0a |l..test..| 1. Open "file1" with "emacs -Q". It is regarded as an in-is13194-d