[Top][All Lists]

[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: Eli Zaretskii
Subject: Re: bug#23750: 25.0.95; bug in url-retrieve or json.el
Date: Wed, 30 Nov 2016 20:48:27 +0200

> From: Philipp Stephani <address@hidden>
> Date: Wed, 30 Nov 2016 18:25:09 +0000
> Cc: address@hidden, address@hidden, address@hidden
>  > 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.

Yes, because the internal representation of characters in Emacs is a
superset of UTF-8.

> What Emacs lacks is good support for byte arrays.

Unibyte strings are byte arrays.  What do you think we lack in that regard?

> 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.

I disagree.  Handling unibyte strings is a nuisance, so Emacs allows
most applications be oblivious about them, and just handle
human-readable text.

reply via email to

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