[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: |
Andreas Schwab |
Subject: |
Re: bug#23750: 25.0.95; bug in url-retrieve or json.el |
Date: |
Sat, 03 Dec 2016 21:57:59 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.90 (gnu/linux) |
On Dez 03 2016, Lars Ingebrigtsen <address@hidden> wrote:
> Can `string-bytes' return a different number than
>
> (with-temp-buffer
> (set-buffer-multibyte nil)
> (insert string)
> (buffer-size))
>
> ?
ELISP> (string-bytes "\200")
1 (#o1, #x1, ?\C-a)
ELISP> (string-bytes (string-make-multibyte "\200"))
2 (#o2, #x2, ?\C-b)
ELISP> (let ((string "\200")) (with-temp-buffer
(set-buffer-multibyte nil)
(insert string)
(buffer-size)))
1 (#o1, #x1, ?\C-a)
ELISP> (let ((string (string-make-multibyte "\200"))) (with-temp-buffer
(set-buffer-multibyte nil)
(insert string)
(buffer-size)))
1 (#o1, #x1, ?\C-a)
ELISP>
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, (continued)
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Lars Ingebrigtsen, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Dmitry Gutov, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Lars Ingebrigtsen, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Dmitry Gutov, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Lars Ingebrigtsen, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Dmitry Gutov, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Eli Zaretskii, 2016/12/03
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Lars Ingebrigtsen, 2016/12/03
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Stefan Monnier, 2016/12/03
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Lars Ingebrigtsen, 2016/12/03
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el,
Andreas Schwab <=
Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Philipp Stephani, 2016/12/28
Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Philipp Stephani, 2016/12/28
Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Philipp Stephani, 2016/12/28