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:23:14 +0000



Eli Zaretskii <address@hidden> schrieb am Mi., 30. Nov. 2016 um 17:25 Uhr:
> From: Lars Ingebrigtsen <address@hidden>
> Cc: Eli Zaretskii <address@hidden>,  address@hiddenaddress@hiddenaddress@hidden
> Date: Wed, 30 Nov 2016 16:48:09 +0100
>
> 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".

I guess the problem is that process-send-string cares. If it didn't, we wouldn't have the problem.
For URL, we'd need functions like
  (byte-array-length s) = (length (string-to-unibyte s))
  (process-send-bytes s) = (process-send-string (string-to-unibyte s))
(conceptually; process-send-string also does EOL conversion, which should never be done for HTTP bodies.) 

reply via email to

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