From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Boruch Baum Newsgroups: gmane.emacs.devel Subject: Re: CSV parsing and other issues (Re: LC_NUMERIC) Date: Thu, 10 Jun 2021 16:20:45 -0400 Message-ID: <20210610202045.4b42osqejx66pb6p@E15-2016.optimum.net> References: <20210608004510.usj7rw2i6tmx6qnw@E15-2016.optimum.net> <83h7i9f5ij.fsf@gnu.org> <73df2202-081b-5e50-677d-e4498b6782d4@gmail.com> <83eedcdw8k.fsf@gnu.org> <83lf7hbqte.fsf@gnu.org> <20210610180145.staexpqsmqpiv44c@E15-2016.optimum.net> <83a6nxbllz.fsf@gnu.org> <20210610190453.gaq5pqlfbvy4zwmp@E15-2016.optimum.net> <837dj1bk1k.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33638"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 Cc: manikulin@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 10 22:24:11 2021 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 1lrRDm-0008Z7-OC for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Jun 2021 22:24:10 +0200 Original-Received: from localhost ([::1]:37722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrRDl-00036g-Et for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Jun 2021 16:24:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrRAb-0008Iq-2i for emacs-devel@gnu.org; Thu, 10 Jun 2021 16:20:57 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:38925) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrRAZ-0002Mt-33; Thu, 10 Jun 2021 16:20:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1623356448; bh=cHhD3utEmdpC/K7hY3w1pgl6KHmh1y5NNLOkH3Tu6ts=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=b6HqTLzaTEN2kPCMUMV+7FmAMMqxSSqtEVsRVuJOKWex1ExveuRQZHRV6qI9nT7jx VYpGJrp4AKQ6yVi5IJF5zvDB/+czb2zB6F4EZu8YOWs4QLcf1UgFc64BXF8oHwGl7V 9Wx9pW8BQcSNDLgT1v6MLNL//vqTEHasIc9VMjjM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from E15-2016.optimum.net ([96.224.230.212]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1N6sn1-1lGtFI33bL-018Hkq; Thu, 10 Jun 2021 22:20:48 +0200 Content-Disposition: inline In-Reply-To: <837dj1bk1k.fsf@gnu.org> X-Provags-ID: V03:K1:r+2eNfPGXwl2QuVHTyTGdwITLF5MUWJvxnOwWmj3aFgU95NI0a1 3elrvfr1pRervZk/Ssfg165sl9n6tA1cTqE+/9ZIUDQWKkGAECUufAtdMqRuaJOgEIJ5REu pGVBPIUtyLwLo00MsTPLxh+JlNSAYqEyBZYbgqTEr3p18N2QR1HDzcjtn3F5HEwltA614lx MC3D0tY1krDnRbIasMYyQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:oR+SfqHReD8=:MChsmocASa67GVs7SBL6sS AB+OkEe/t3TnknHUOB17EnsHS6Q2ywyUzh85TMwlTBY+iS1zxmqgg8TW7hELbfB9fZ7vZfclp b9YhSVGuTd45TmZBGoGj3AfcnWjOLg1y+um5wQRpZUA4/NnjFnbh+0m3B6bH7frQZxtimytqi uJ+Z4/rxpRvpO7nCSm1kGrrxNub5FsZ0SoNo7ikvqEhZonfnIFLB2DEhHqLyPmrbCGqJ74ZE5 HeUuBTPqnQrbuOajrl6UgZHs4w5HXBUCasuTz4+qfclwYIb4tGjqCjyMEYrT3zY9dAGC4tUfR 5pzd+dFUUJ3j9ygw9XYR/rS1BCWZ8pn3/nRIQjzh/ZOm3to+YFFmzOsF4qaw1RXC/aXJXFjXr 64esI8NIR2OUfUMFqk7uuoohSF1jz2UXqwqXgtRbl+GaeYa6j6drWY6GCI1PFwnU+0bxEyJjS TxmLLhP09G/L6ZVDK66Fum3xeqcdFeGhTXEfO/SfVmMeFxJgk1fLiYqG/XkOruBK9z7ssS4qm 8pLBkjiKAEKb5PMer+QrhS2NeJJxJczCTmlDkqfHRk8SKPo2ghXxr5KlnP/wPvBjY8KvInlG3 gMwbaAvzYC0BMi0fBDqb0XqkWFMIyOVdt4EIAyxt8mz89QSLo9N0Lnx/4p7DV9Xc2AwNBCpt2 HYCg4oV+ZON+qClLKSYkpNVLmY/XZHtcjpne2zqDskeAIrYpzYnFbVrTA2cHLwdKFAeUZsHBJ zycNfjjhkMSnrQz45xYvO25vJnuRFLhD9MLMfV0Jzt8yVVHD5YsodKw/LgoLvy1HhB+B7Uu4 Received-SPF: pass client-ip=212.227.17.20; envelope-from=boruch_baum@gmx.com; helo=mout.gmx.net X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:270673 Archived-At: On 2021-06-10 22:23, Eli Zaretskii wrote: > > Date: Thu, 10 Jun 2021 15:04:53 -0400 > > From: Boruch Baum > > Cc: manikulin@gmail.com, emacs-devel@gnu.org > > > > > That would make the output of 'format' dependent on the current > > > locale > > > > That's the elisp programmer's business, not your responsibilty. > > What could the Lisp programmer do in this situation? It's not your responsibilty. I can say that in the use-case that prompted my request, I'm confident it will *never* be an issue. I ask format to give me a string and I display it. End of story. Whether just 99% or 99.99%, the overwhelming majority of cases will be the same. Your concerns are total non-issues. > > + Elsip function `format' uses `printf' format specifiers. > > Only for some of the 'format's capabilities, not for all of them. [Commentary: 'Some' isn't a number or a percentage.] [Commentary: I see all format specifiers supported but the two requested.] > > + Elisp function `format' doesn't expose two of them. > > I don't think it's TRT for Emacs to expose locale-dependent features > that cannot be controlled from Lisp Then don't make them locale specific. Implement the single-quote specifier the same way you currently handle the floating-point specifier '%f', a locale-specific format that has existed in emacs without complaint since ... =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0