Ethan Glasser-Camp <ethan.glasser.camp@gmail.com> writes: > Writing this buffer using C-x C-w encodes it correctly too. So I think > this is an emacs MIME problem. We call mm-save-part, which calls > mm-save-part-to-file, which calls mm-with-unibyte-buffer. Hmm.. > > Indeed, it seems that inserting this character into a file that's been > marked "unibyte" using (set-buffer-multibyte nil) turns it into the ^Y > character (ASCII code 0x19 -- the character that comes out in the patch > file). There's probably a technical reason that this should be true, but > I can't think of why that would be. The more I think about this, the more convinced I become that this is a bug in emacs's multibyte handling. I've filed a bug, see: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12925 But I think Tomi's going to formalize his hacky patch and send that out later too. When he does, it has my +1. Ethan