[Top][All Lists]

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

Re: package.el encoding problem

From: Stefan Monnier
Subject: Re: package.el encoding problem
Date: Sat, 25 May 2019 10:55:36 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>> We used to put it into a multibyte buffer, which then causes the save
>> the be all confused because the bytes 128-255 it contains aren't part of
>> any coding-system.
> I don't see how that matters.  Raw bytes should be converted back to
> their original unibyte form when saving, no matter what coding-system
> is used.

The bytes were saved correctly.  But before that happened, the user was
prompted to choose a coding-system.

>> It is definitely *possible* to use multibyte buffers even in cases where
>> we only manipulate bytes, but it is undesirable.
> I'm probably missing something, because I don't see would that be
> undesirable.

It doesn't do anything else than introduce problems (e.g. having to
decide how to encode chars even though there are no chars to decode)
and inefficiencies.

I'm rather curious what you think would be the benefits from using
a multibyte buffer here.


reply via email to

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