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.bugs Subject: bug#50988: 26.3; gnus-cloud gets wrong chunk byte count writing sync from windows Date: Sun, 03 Oct 2021 14:04:44 +0300 Message-ID: <83zgrq8j3n.fsf@gnu.org> References: <86o886jym9.fsf@dod.no> <83czoma2qr.fsf@gnu.org> <86fstijt4c.fsf@dod.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="383"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50988@debbugs.gnu.org To: Steinar Bang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 03 13:06:16 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mWzJv-000ATg-4Y for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Oct 2021 13:06:15 +0200 Original-Received: from localhost ([::1]:42564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWzJu-0005lq-4P for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Oct 2021 07:06:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWzJi-0005kk-Ip for bug-gnu-emacs@gnu.org; Sun, 03 Oct 2021 07:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWzJi-0005rA-21 for bug-gnu-emacs@gnu.org; Sun, 03 Oct 2021 07:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWzJh-0001Wk-T6 for bug-gnu-emacs@gnu.org; Sun, 03 Oct 2021 07:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Oct 2021 11:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50988 X-GNU-PR-Package: emacs Original-Received: via spool by 50988-submit@debbugs.gnu.org id=B50988.16332591075802 (code B ref 50988); Sun, 03 Oct 2021 11:06:01 +0000 Original-Received: (at 50988) by debbugs.gnu.org; 3 Oct 2021 11:05:07 +0000 Original-Received: from localhost ([127.0.0.1]:32953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWzIo-0001VW-Qx for submit@debbugs.gnu.org; Sun, 03 Oct 2021 07:05:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWzIm-0001Ux-GL for 50988@debbugs.gnu.org; Sun, 03 Oct 2021 07:05:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45418) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWzIg-0004sW-1Q; Sun, 03 Oct 2021 07:04:58 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2243 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWzIe-0000fA-NQ; Sun, 03 Oct 2021 07:04:57 -0400 In-Reply-To: <86fstijt4c.fsf@dod.no> (message from Steinar Bang on Sun, 03 Oct 2021 12:32:51 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:216248 Archived-At: > From: Steinar Bang > Cc: 50988@debbugs.gnu.org > Date: Sun, 03 Oct 2021 12:32:51 +0200 > > > If gnus-cloud synchronizes your files with a remote repository, then > > the files on the remote should have the same EOL format as on your > > original disk, so where does Emacs strip or ignore the CR characters > > to come up with a smaller number of bytes in the actual transfer? > > I'm not sure where the conversion happens and have been unable to figure > it out. > > But I'm guessing the buffer inserted into here, has eol lf-only and that > this is where/when the conversion happens: > https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/gnus/gnus-cloud.el#n104 Sounds unlikely: inserting a string into a buffer doesn't change the EOL format, or at least isn't supposed to.