GNU bug report logs - #1809
decode-coding-inserted-region corrupts files

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> jurta.org>

Date: Tue, 6 Jan 2009 17:55:03 UTC

Severity: normal

Merged with 2416

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> jurta.org>
To: 1809 <at> debbugs.gnu.org
Cc: emacs-pretest-bug <at> gnu.org
Subject: bug#1809: decode-coding-inserted-region corrupts files
Date: Thu, 15 Jan 2009 03:12:17 +0200
Below is a shorter test case simplified from `epa-file-decode-and-insert':

1. emacs -Q

2. Evaluate

(progn
  (switch-to-buffer "test")
  (insert "Test.\nTest2.\nTest3.\n")
  (decode-coding-inserted-region
   (point-min) (point-max) "/tmp/test" t nil nil nil))

3. The first character becomes the NULL control character:

^@est.
Test2.
Test3.

-- 
Juri Linkov
http://www.jurta.org/emacs/




This bug report was last modified 16 years and 95 days ago.

Previous Next


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