Eli Zaretskii <address@hidden
> schrieb am Mi., 30. Nov. 2016 um 17:42 Uhr:
> From: Lars Ingebrigtsen <address@hidden>
> Cc: address@hidden, address@hidden, address@hidden, address@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.