From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: bug#23750: 25.0.95; bug in url-retrieve or json.el Date: Sat, 03 Dec 2016 21:57:59 +0100 Message-ID: <87oa0spw6g.fsf@linux-m68k.org> References: <6d0c8c2e-8428-2fdb-0d6e-899f7b9d7ffd@nifty.com> <83eg1tq8is.fsf@gnu.org> <787e5206-53e0-752f-a339-4608d2f7ad39@yandex.ru> <837f7lq6lg.fsf@gnu.org> <83bmwvpo0o.fsf@gnu.org> <04e2da4e-1fa3-4483-459c-32f272378486@yandex.ru> <8508920e-097f-0b2a-0558-49973ea0def6@yandex.ru> <765199a5-1ca1-da30-9414-93b40f9406d6@yandex.ru> <837f7hmnxn.fsf@gnu.org> <87r35ordd6.fsf@gnus.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1480798736 30857 195.159.176.226 (3 Dec 2016 20:58:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Dec 2016 20:58:56 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.90 (gnu/linux) Cc: Stefan Monnier , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 03 21:58:52 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDHOW-00074g-Hc for ged-emacs-devel@m.gmane.org; Sat, 03 Dec 2016 21:58:52 +0100 Original-Received: from localhost ([::1]:52449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDHOY-0004Wk-MF for ged-emacs-devel@m.gmane.org; Sat, 03 Dec 2016 15:58:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDHNt-0004Wd-5t for emacs-devel@gnu.org; Sat, 03 Dec 2016 15:58:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDHNp-0004YD-E5 for emacs-devel@gnu.org; Sat, 03 Dec 2016 15:58:13 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:45201) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cDHNp-0004Y4-7P for emacs-devel@gnu.org; Sat, 03 Dec 2016 15:58:09 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3tWNdm3fNpz3hjR6; Sat, 3 Dec 2016 21:58:04 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3tWNdm30c7zvlqT; Sat, 3 Dec 2016 21:58:04 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 6pBzy0IyxEwF; Sat, 3 Dec 2016 21:57:59 +0100 (CET) X-Auth-Info: FkIpPJZWCoggyRQfrITnKnDqP3bPUrLrP8dQxErn4py7Rtq81z85biXktCT+Gj1A Original-Received: from igel.home (ppp-88-217-25-236.dynamic.mnet-online.de [88.217.25.236]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sat, 3 Dec 2016 21:57:59 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 693532C2FE1; Sat, 3 Dec 2016 21:57:59 +0100 (CET) X-Yow: Th' PINK SOCK... soaking... soaking... soaking... Th' PINK SOCK... washing... washing... washing... Th' PINK SOCK... rinsing... rinsing... rinsing... In-Reply-To: <87r35ordd6.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 03 Dec 2016 21:01:25 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 212.18.0.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:209993 Archived-At: On Dez 03 2016, Lars Ingebrigtsen 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, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."