Subject: Re: bug#1809: decode-coding-inserted-region corrupts files

From: Juri Linkov <[email-masked]>
Date: Fri, 16 Jan 2009 01:02:38 +0200

>> (progn
>>  (switch-to-buffer "test")
>>  (insert "Test.\nTest2.\nTest3.\n")
>>  (decode-coding-inserted-region
>>   (point-min) (point-max) "/tmp/test" t nil nil nil))
>
> (with-temp-buffer
>    (insert (make-string 20 ?.))
>    (decode-coding-region 1 (point-max) 'raw-text)
>    (buffer-string))
>
>  => "^@..................."
>
> It only happens for a string of length 20 bytes.

Does this mean I was lucky discovering the exact length where the bug
manifests itself?

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