From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Porter Newsgroups: gmane.emacs.devel Subject: Re: How to get buffer byte length (not number of characters)? Date: Fri, 23 Aug 2024 01:31:16 -0500 Message-ID: <203a830d-356e-4c0a-83c6-c2aeb8d1e135@alphapapa.net> References: <87wmkbekjp.fsf@ushin.org> <86o75nwilg.fsf@gnu.org> <87bk1lhkvg.fsf@ushin.org> <86y14pu5rp.fsf@gnu.org> <871q2hfn7c.fsf@ushin.org> <86plq1td4n.fsf@gnu.org> <87ed6hdnpe.fsf@ushin.org> <86o75ksm2q.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13470"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: joseph@ushin.org, emacs-devel@gnu.org, schwab@suse.de To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 23 08:32:04 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1shNq7-0003Ln-9o for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Aug 2024 08:32:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1shNpn-0000as-9M; Fri, 23 Aug 2024 02:31:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1shNpV-0000Vg-0u for emacs-devel@gnu.org; Fri, 23 Aug 2024 02:31:33 -0400 Original-Received: from crocodile.ash.relay.mailchannels.net ([23.83.222.45]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1shNpR-0006DD-Ki; Fri, 23 Aug 2024 02:31:23 -0400 X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C753C8051FD; Fri, 23 Aug 2024 06:31:18 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a289.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 579D3805281; Fri, 23 Aug 2024 06:31:18 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1724394678; a=rsa-sha256; cv=none; b=oLSJa2zlYc6Q0O5Vry43peS6yhg7DT24RhciQucFpRK+1F2mqRJcWe713rqp54Q64wNIn3 cNuSAnJdd1Vyija8tNF7dPkZ4WDj2At5hswK/EkFdkyUOgOdvuEWTn4qYYcpgDLI1Yj3o9 XpjV7trFdoIzApvtdpDhPXx98zxa6bzL2wwUZ5e0XCwpXyKriIlpXY5vEwWyv2Vk2UXjrc DY7AvHKsSjcKb2lAoFTzLbcl72V2HP9Fke4NblrVtt6kLa3j1xZhK42iMfdBUrZXtE4jOP nUP66+mH3dqh+ixIT7WUEkcOcXTopxf2EDnlAb1tgufVhiRhU0sRBs5unBOQXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1724394678; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=go0NwUlcTWyHqn+T1anSLQRacjAO78J4AgvN3tNWw3U=; b=M8TKkL/6ozMGFVl0hD+ypQrMmheL1OeeWTyd1bavWdSY8pL362Jhnvm7u8/0sRts/dqbxY AmQTnfC4lvqKFnHv9U6Bh0kNIl1LZZfaAKKjW1/Cs4ZNaVi4GqlwKoV8QJnhQJ0bUgaVJ4 dAESc8X9ZQZNxE5kJ61lbL6zziUCwiEuFSiK2SHIEOqO2P2Zf8xzYpzRzhcURwdMn/ZKGh 0XqnP7v0+HieFCkuFyWhypB3+1lfiRPLZv9GmsLHUxgDx1imyzbWuh7zab1NtOYgFFC/wj sqb7ZBcJpSYfNJXIXb8dOqr3tuL2XrRe2LHfAAKw3dujBJy1QRtfcVjrjZvmxQ== ARC-Authentication-Results: i=1; rspamd-5549cdcdbf-snwwh; auth=pass smtp.auth=dreamhost smtp.mailfrom=adam@alphapapa.net X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|adam@alphapapa.net X-MailChannels-Auth-Id: dreamhost X-Versed-Oafish: 635dc54645bf933e_1724394678677_1574417592 X-MC-Loop-Signature: 1724394678677:3094108522 X-MC-Ingress-Time: 1724394678677 Original-Received: from pdx1-sub0-mail-a289.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.115.51.245 (trex/7.0.2); Fri, 23 Aug 2024 06:31:18 +0000 Original-Received: from [10.43.127.69] (unknown [193.56.116.15]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: adam@alphapapa.net) by pdx1-sub0-mail-a289.dreamhost.com (Postfix) with ESMTPSA id 4Wqqw54Hzlz3f; Thu, 22 Aug 2024 23:31:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alphapapa.net; s=dreamhost; t=1724394678; bh=go0NwUlcTWyHqn+T1anSLQRacjAO78J4AgvN3tNWw3U=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=qhewjkzJHF1oOw6QOglDsCNQ7Zt5LEIuFiQN3HzQ6ay9BTsvq84+2kjSTb87PDFGn yLKbHJ3i9tyPyTARFJ2th0YuMcXy3hQD8Y7OJbtyLbznbgrI3311gYrRqJdPH63fbz 6G/gNV/IcN5Wr6UTF1nlp5UPm41eqETqW/cRyU67T8sjo9/9UBeBLif+Aa+WdMpXpd 6H8d+AdFIqgE8LYbETF/K5h+XPB2daCCZbOsuNtYr8qLu+p3Y+u+5b3wU+Kus1aP1J lu77+jmxDcLzE/XLR89UtjCvBM6pewhSBOBol4XrrNx+l4svQEl1Yjn6F1KN2P7OQy yzWSrr9SvAugg== Content-Language: en-US In-Reply-To: <86o75ksm2q.fsf@gnu.org> Received-SPF: neutral client-ip=23.83.222.45; envelope-from=adam@alphapapa.net; helo=crocodile.ash.relay.mailchannels.net X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323070 Archived-At: On 8/22/24 08:50, Eli Zaretskii wrote: > But AFAICT, plz.el does decode the stuff it gets from curl, which > doesn't seem to be consistent with what you say above. If plz.el > would accept unibyte text and return unibyte text, that would be > consistent: it would mean that any callers of plz.el need to do > encoding and decoding themselves. But that doesn't seem to be the > case now. > > Am I missing something? Yes, the :decode argument to plz. If :decode is nil (or if ":as 'binary" is specified, which sets :decode to nil), plz does not decode the response body.