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#70007: [PATCH] native JSON encoder Date: Sun, 25 Aug 2024 08:07:48 +0300 Message-ID: <867cc5mbq3.fsf@gnu.org> References: <1BF559D1-DB9F-4FEB-90ED-72E0EFD76424@gmail.com> <86wmpphrg7.fsf@gnu.org> <4589243D-C11A-45C1-AF3E-6F4A5BADEB54@gmail.com> <864jcrindg.fsf@gnu.org> <291DD5F1-85B8-4647-A40A-EBBD4C51E253@gmail.com> <8634sbijfx.fsf@gnu.org> <2CF47DA5-A65B-47C4-A28A-6FEE1469BD13@gmail.com> <86cyrdfuai.fsf@gnu.org> <3139C8FE-5C67-4FE3-B940-F449DA73E76C@gmail.com> <86le5zdfbi.fsf@gnu.org> <4C93E902-282D-4408-B449-C8E771B2B3E4@gmail.com> <86cyr7agjo.fsf@gnu.org> <850DEC32-F318-4F3E-BA87-55FC6DC74CD3@gmail.com> <86ikvpnbj5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25629"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, 70007@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Stefan Monnier , Stefan Kangas , Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 25 07:08:31 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 1si5UN-0006Wc-4b for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Aug 2024 07:08:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1si5U6-00012Y-Tq; Sun, 25 Aug 2024 01:08:14 -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 1si5U5-00012J-9z for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2024 01:08:13 -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 1si5U5-0000Co-0b for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2024 01:08:13 -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:References:In-Reply-To:From:Date:To:Subject; bh=sB6aVg/H/2j6VsDY1xjHN/Is73uu8qNDT2RUPGvDWeI=; b=S+cC9wqNdNAghZsXspDk9scEAVY9psIFhd2Q1He6GCYTYp9+A8QFOtap4xwUbFD/9fChw8M7EysJMrxcBs8wGB8LIkPVIK0udWBCGPgC8NjcGiFVIzqsroIBFstKardVcn5BLw8RU5yY2XR4kTIAvqI1OPydDBPGQeOOeedPEPCQA9fp1BbRq1/iYwBuCK9bK4cZb7C6i2vXOkzGCYrBVAb/xZrutXj9m877NWhBl9hvT4y4ik2IMQfswnSy2dBBfF0pXf/xTWPyDWV2dIGX6bCp9VHmyjCXqACx0mp89c1g3qcM06wJ6AvEBlJHBd0MGj+Czq55ZIKydgyFQ5IIIw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1si5Us-0008Jc-Dx for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2024 01:09:02 -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, 25 Aug 2024 05:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70007 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 70007-submit@debbugs.gnu.org id=B70007.172456252831940 (code B ref 70007); Sun, 25 Aug 2024 05:09:02 +0000 Original-Received: (at 70007) by debbugs.gnu.org; 25 Aug 2024 05:08:48 +0000 Original-Received: from localhost ([127.0.0.1]:42078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1si5Ue-0008J5-0p for submit@debbugs.gnu.org; Sun, 25 Aug 2024 01:08:48 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1si5Uc-0008Iq-3m for 70007@debbugs.gnu.org; Sun, 25 Aug 2024 01:08:46 -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 1si5Tj-0000BD-3W; Sun, 25 Aug 2024 01:07:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=sB6aVg/H/2j6VsDY1xjHN/Is73uu8qNDT2RUPGvDWeI=; b=jHe7av9MGjn9W6C/Ff5D Y9R28m+YDEe4D7r5oR8GlZkAKzY2y4ZyLkECXPAVXlDZXmB7tXL2WSzEvI0Xq9s/vhO8XCfHnwR5z vToRVj6sPqDWH1c6XY6L9+cLRHPW0Uxk0XFd6XeF0F7mtFDgsM+eSaPTv9jB8LVa7fkDFeZf53vtw 2I5b8EhuTgG39GwDZrAXK43+gqaPmqwYldjNDeRk9aLPicHOmvAS/Qsn/iT0Rwji8CpPlKKU8vyyO xsYWdkzmcPyXg/CE5w/u+egkFqRel1M3M5gpGcou+TLdtOA8WOyhEY532+itpry/7ZwaNakh4n1Xc RtdXhlhuyP8HBg==; In-Reply-To: (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Sat, 24 Aug 2024 21:45:57 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:290715 Archived-At: > From: Mattias EngdegÄrd > Date: Sat, 24 Aug 2024 21:45:57 +0200 > Cc: casouri@gmail.com, > 70007@debbugs.gnu.org > > 24 aug. 2024 kl. 18.14 skrev Eli Zaretskii : > > > We are very late in the release process to make such changes without > > reservations. We should have discussed this much earlier, but that's > > water under the bridge. > > Yes, sorry about not following this through in time. But here we are. > > > Since this could potentially (albeit unlikely) break someone's code, > > I'm okay with making this change, but with a twist: let's have a > > variable which could be let-bound around the call to json-serialize, > > to make the result a multibyte string instead of the default unibyte. > > This is so if someone comes back crying that we broke his/her code, > > they could have an easy fire escape. > > Sure, but it's a bit annoying to saddle us with some baggage that we never expect to be actually used. > And for that matter, it's no easier to bind a variable around the call than putting a call to `decode-coding-string` around it, is it? We could describe that in NEWS. > > The null option is to do nothing and stick to what we have now. It's not a terrible choice either. Let's see what others think about this. Stefan, Stefan, and Andrea: any opinions wrt what, if anything, we should do about this on the emacs-30 branch?