emacs-devel
[Top][All Lists]
Advanced

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

Re: master b8062be 3/5: Remove some compat code from eudc-bob.el


From: Stefan Monnier
Subject: Re: master b8062be 3/5: Remove some compat code from eudc-bob.el
Date: Thu, 13 Aug 2020 15:02:07 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> > In unibyte buffers the coding-system doesn't matter.
> Again, this factoid isn't relevant to the issue at hand.

Not sure what is the issue at hand at this point, so I replied to what
you wrote.

>> > For a multibyte buffer, it's dangerous.
>> So you say, but again: Do you know a less "dangerous" alternative?
> Yes: encode using UTF-8.

AFAIK the UTF-8 spec does not specify how to encode "byte chars" (like
our eight-bit chars), so if you (think you) have only bytes in your
multibyte buffer (i.e. only ascii and eight-bit chars), using utf-8 is
rather strange and oddly dangerous since you're relying on some
corner-case detail of our utf-8 coding-system.


        Stefan




reply via email to

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