emacs-devel
[Top][All Lists]
Advanced

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

Re: bug#23750: 25.0.95; bug in url-retrieve or json.el


From: Philipp Stephani
Subject: Re: bug#23750: 25.0.95; bug in url-retrieve or json.el
Date: Wed, 30 Nov 2016 18:25:09 +0000



Eli Zaretskii <address@hidden> schrieb am Mi., 30. Nov. 2016 um 17:42 Uhr:
> From: Lars Ingebrigtsen <address@hidden>
> Cc: address@hiddenaddress@hiddenaddress@hiddenaddress@hidden
> Date: Wed, 30 Nov 2016 17:27:05 +0100
>
> Eli Zaretskii <address@hidden> writes:
>
> >> Yes, this is not a json.el problem at all.  It does the correct thing,
> >> and shouldn't be changed.
> >
> > ??? Why should any code care whether a pure-ASCII string is marked as
> > unibyte or as multibyte?  Both are "correct".
>
> That's right -- why should any code care?  Yet url.el does.

No, it doesn't, not if the string is plain ASCII.


But in that case it isn't, it's morally a byte array.
What Emacs lacks is good support for byte arrays. For HTTP, process-send-string shouldn't need to deal with encoding or EOL conversion, it should just accept a byte array and send that, unmodified.

reply via email to

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