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

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

bug#34873: 27.0.50; Creating unibyte string in emacs modules


From: Eli Zaretskii
Subject: bug#34873: 27.0.50; Creating unibyte string in emacs modules
Date: Thu, 27 Aug 2020 16:40:31 +0300

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: lg.zevlg@gmail.com,  34873@debbugs.gnu.org
> Date: Thu, 27 Aug 2020 15:04:32 +0200
> 
> > In this case AFAIR the request was to use unibyte strings for binary
> > data, i.e. stuff that is not a string at all, which is one more reason
> > not to base the implementation on unibyte strings.
> 
> Yes, the only real reason to use unibyte strings is for binary data, I
> thought?

No, that's not the use case for unibyte strings.  We have bindat.el
for that.  Unibyte strings is for handling text that was not yet
decoded into the internal representation, or which was encoded before
sending it to an external program or I/O port.

> Just like unibyte buffers are for data, not text, unibyte strings are
> for data, not text.

If that's what you really think, we disagree.  About the only use case
which comes close (though not close enough) to what you describe is
when we hold compressed data in a buffer.






reply via email to

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