From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Pettersson Newsgroups: gmane.emacs.bugs Subject: bug#72597: 30.0.60; Eglot: MarkedString with embedded Carriage Return Date: Fri, 06 Sep 2024 18:00:29 +0200 Message-ID: References: <86h6bohdsd.fsf@gnu.org> <87v804mfyz.fsf@betli.tmit.bme.hu> <86v803g1oy.fsf@gnu.org> <87le0zmyy7.fsf@betli.tmit.bme.hu> <86ikw3fw4k.fsf@gnu.org> <86wmjxcein.fsf@gnu.org> <864j6y9u36.fsf@gnu.org> <861q1x2v6j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29586"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 72597@debbugs.gnu.org, brownts@troybrown.dev, felician.nemeth@gmail.com, joaotavora@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 06 18:02:51 2024 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 1smbQA-0007TN-W0 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Sep 2024 18:02:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smbPA-0006dF-5m; Fri, 06 Sep 2024 12:01:48 -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 1smbOR-0006R9-2d for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2024 12:01:21 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1smbOQ-00011h-Oq for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2024 12:01:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=7bYGFlqSAttRNNWP/cIEek15obL31edT2WWKlVl9e1I=; b=FKCaqlqLjG/uYdCv8Ot5PLAXsjm/D59NNy5Z3IKEdvphUTFMJBqzU69GyFDMmo+bNJ2ViGo/30NHosixwYCStlfeQaS/s9iQVxUfISF5ljNtyU80VQMncpzDsJAVOzfuPIm9u65cQlDnptX84NtxncbAyEhqnlBVAXmSUN7zTsaFkFWuU8CYQ2unD0RpnT30YhIg1a+M1Gbx0Eh2+V9kTjYM1UbIE0WVLIDAAb6l0VdYOA1klaaHgTH0t8s2g7GxDnwkVdZaFXfL6DVO07HqnCa/gAyPjupk5BIYYYSH2xkuuAfHJ9z+6TEshbF1X7XX+EnwqxSLBOROoiCja6TKUw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smbOQ-0008Aw-AG for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2024 12:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Pettersson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Sep 2024 16:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72597 X-GNU-PR-Package: emacs Original-Received: via spool by 72597-submit@debbugs.gnu.org id=B72597.172563843931383 (code B ref 72597); Fri, 06 Sep 2024 16:01:02 +0000 Original-Received: (at 72597) by debbugs.gnu.org; 6 Sep 2024 16:00:39 +0000 Original-Received: from localhost ([127.0.0.1]:53985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smbO2-0008A7-JN for submit@debbugs.gnu.org; Fri, 06 Sep 2024 12:00:38 -0400 Original-Received: from mail-lf1-f46.google.com ([209.85.167.46]:54458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smbO1-00089q-4B for 72597@debbugs.gnu.org; Fri, 06 Sep 2024 12:00:37 -0400 Original-Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-5365392cfafso2033410e87.0 for <72597@debbugs.gnu.org>; Fri, 06 Sep 2024 09:00:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725638431; x=1726243231; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7bYGFlqSAttRNNWP/cIEek15obL31edT2WWKlVl9e1I=; b=nRNKGVZle12gROsOgaozVpPco1DzFDAQIJ+esjUB/5Of4Rh/QB8FZjTW9WHK53YYsv kvlYBDl32WI059qLsW9kWuIkhqQd1g7VaM+1apsVo17ZkbTPosgLv58+YOoKtsFHADD8 padWAoAvpO81wPoHD8GXAQn3rcb9VFsKDsRWLA+9pZtwNBINFukL1GmZT2RPsHE8PzJz 2TkNXAB982e0X5zfFUjU9bZd1J+4FFEa2YoKA/ZDP4AjmGnrqx/+UVwnCcttyvg7KHzn p38J/CoZFcb7GPXGux82/LDS0fpgkPSOAINN12an/202nG9wK7A3Fvwmhc6QJ1gca/gp 7K3w== X-Forwarded-Encrypted: i=1; AJvYcCVfeNOyj94GH2W/cY6/XPgZmPZ7JF8HT7OcRkt9qxwEMpLKpRjHUXrQH6defhi7SaAfWlHJTQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yy4gLhAY926Pi2mHM5qnGEtTP0/KcllfYJEk9VqlVP0yeNaXzZG qZrFylqz6xqft87TM/o/g3gouROBUu9E7mppJRDZ19NktvL1skFO0uREYw== X-Google-Smtp-Source: AGHT+IEHqekZdvTnSkC7LJ+CHmIRc9WMmtEd1eF4UovjVkTeNi7Q2Nl3FefVsF5iJGW5xfUNn+5MNQ== X-Received: by 2002:a05:6512:1283:b0:52c:e0fb:92c0 with SMTP id 2adb3069b0e04-536587c8177mr2176309e87.34.1725638430818; Fri, 06 Sep 2024 09:00:30 -0700 (PDT) Original-Received: from Daniels-Air (c-97c9e455.027-357-6d6c6d4.bbcust.telenor.se. [85.228.201.151]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5365889273dsm231767e87.109.2024.09.06.09.00.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Sep 2024 09:00:30 -0700 (PDT) In-Reply-To: <861q1x2v6j.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 06 Sep 2024 08:44:04 +0300") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291321 Archived-At: Eli Zaretskii writes: > That depends on the reason why the CR character appeared there in the > first place. Are they required for the strings in questions, or are > they simply an artifact of how the server marshaled JSON data on the > wire? I am not convinced, in my mind if the marshaling operation converts \n to \r\n (or any other character combination) within a string literal, then the server's JSON conversion is broken. > In the latter case, the CR characters are the result of > Windows-style text writing, which adds a CR to each newline, and > therefore removing that CR should indeed happen where Emacs decodes > the EOLs of the incoming stuff. I fail to see how that is not due to an broken json marshaling and not intentionally chosen line endings by the server. Of course I might be overlooking something. /Daniel Pettersson