emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TRAMP copies binary files incorrectly


From: Stefan Monnier
Subject: Re: TRAMP copies binary files incorrectly
Date: Thu, 11 Jan 2007 00:21:51 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux)

> But, as Stefan wrote, it is better to call
> (set-buffer-multibyte nil) much earlier.

> Anyway, it is better to fix the function bound to loc-dec to
> work in a multibyte buffer too.  Which function is it?

I believe the function "at fault" is uudecode-decode-region, although
personally I think the problem is much deeper, in the implicit use of
unibyte-char-to-multibyte in `insert'.

But independently from whether we fix it or not, I believe that making the
buffer unibyte is the right thing to do since it will only ever contain
bytes, and never chars: using a multibyte buffer here is inefficient and is
asking for trouble.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]