From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16565 invoked from network); 2 Oct 2021 16:19:53 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 2 Oct 2021 16:19:53 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mWhjr-00EkMf-HB for ml@inbox.vuxu.org; Sat, 02 Oct 2021 11:19:51 -0500 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1mWhjq-007feN-Oe for ml@inbox.vuxu.org; Sat, 02 Oct 2021 11:19:50 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1mWhjp-007feH-Lv for ding@lists.math.uh.edu; Sat, 02 Oct 2021 11:19:49 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mWhjn-00EkMM-9a for ding@lists.math.uh.edu; Sat, 02 Oct 2021 11:19:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:References:Message-ID:Date:Subject: From:To:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NE+jRUXZa3eDUBjjBOzWTXBO9JfYbm7MOme2G38oVsk=; b=kd+ypV42A2vwmEJh9xpPwqFfRi QppoF/m17k1rrxxpjb0AmyJNy1rv69iVfQKtlc1py2JXs7E40X4F/+l5wxLfk7yP8uKxA7p4BrSEl qREKgjkeG6CCMPWCps2yr0jdO6yqRicP0nzTCCOGUc7TKNJ4Rs64TGvMVz8zGGi4EZrU=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mWhjg-0004xm-Oq for ding@gnus.org; Sat, 02 Oct 2021 18:19:43 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mWhjf-0008fU-7m for ding@gnus.org; Sat, 02 Oct 2021 18:19:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org To: ding@gnus.org From: Steinar Bang Subject: Re: Trying to use gnus-cloud: what's the pinentry dialog? (and how can I get rid of it?) Date: Sat, 02 Oct 2021 18:19:31 +0200 Organization: Probably a good idea Message-ID: <86tuhz4cx8.fsf@dod.no> References: <86ilywektx.fsf@dod.no> <86fsu0k5w3.fsf@dod.no> <86bl4ok58z.fsf@dod.no> <867dfck4g9.fsf@dod.no> <86mto3gwkj.fsf@dod.no> <86v92rwbyw.fsf@dod.no> <86lf3nw6su.fsf@dod.no> <86czozw5mo.fsf@dod.no> <867devd5uu.fsf@dod.no> <8635pjd59t.fsf@dod.no> <86y27b4gmk.fsf@dod.no> <87o887l93u.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (windows-nt) Cancel-Lock: sha1:nQUa3zM5bRbg111B8/p5rugpqv4= Mail-Copies-To: never List-ID: Precedence: bulk >>>>> Eric Abrahamsen : > My understanding is that conversion would have happened if you weren't > using a unibyte buffer, and were using `insert-file-contents' rather > than `insert-file-contents-literally'. Ie, the code is specifically set > up to not do conversion. Yep. That's why I hoped the conversion took place in buffer-string. Because there *is* an end-of--lone conversion somewhere (obviously), but where? Could the end-of-line conversion be caused by the encoding of the buffer that is inserted into? If so, is that conversion intentional or not? One possible way of getting the byte count would be to record point before the insert, record point after the insert and then calculate the difference. That should work both for end-of-line conversion and no end-of-line conversion. However, there's a little hen-and-egg-problem is that we need the length before doing the insert... It feels tempting to replace insert-file-contents-literally with file-contents to see what happens...?