From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How to get buffer byte length (not number of characters)? Date: Fri, 23 Aug 2024 09:51:00 +0300 Message-ID: <86le0nrauj.fsf@gnu.org> 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> <203a830d-356e-4c0a-83c6-c2aeb8d1e135@alphapapa.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6836"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joseph@ushin.org, emacs-devel@gnu.org, schwab@suse.de To: Adam Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 23 08:51:58 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 1shO9O-0001dS-Bi for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Aug 2024 08:51:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1shO8h-0003mv-Aq; Fri, 23 Aug 2024 02:51:15 -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 1shO8b-0003mC-Fk for emacs-devel@gnu.org; Fri, 23 Aug 2024 02:51:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1shO8a-0000n0-I2; Fri, 23 Aug 2024 02:51:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=MKdvZHSUFp/JQX+I8snAX74XGt3dNcU6GrHB4mqg3ho=; b=qmNvTWFckXjV iWnOGYlRweBhWoYFbW6ZPNgNM5zEUqLN+nvQ0D0ZZxgJPTpkLta9rmaddLTNQwltlu1Kvw4j9Su0m S2CyisoqtNZ34A8OmihOQdTNQ0mK45n+cDx9bDBxzrv94z1x0LiL1awDbA+CHO2IdmD2tMnVdzu3g Oa4U6wZLmbW/w4lLkPrph62hSVxAwwuQsSR/ngZ/9G5IRRqmRWs9RUifGceHvQfPz6bc69aq3Co0S 96XdlHKfsIqEc6MEstkAnnjhEu3cEJHEX8T0iQwfZ+yeby1Qfq9K++HPc9F5b+NWlVdooRsm+YpWx IIqjiEeGkqoa/PfmH8nZyQ==; In-Reply-To: <203a830d-356e-4c0a-83c6-c2aeb8d1e135@alphapapa.net> (message from Adam Porter on Fri, 23 Aug 2024 01:31:16 -0500) 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:323071 Archived-At: > Date: Fri, 23 Aug 2024 01:31:16 -0500 > Cc: joseph@ushin.org, emacs-devel@gnu.org, schwab@suse.de > From: Adam Porter > > 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. That is obviously NOT the part I was missing...