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: Sun, 6 Jun 2021 19:36:38 -0400 Message-ID: <20210606233638.v7b7rwbufay5ltn7@E15-2016.optimum.net> 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="10478"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 Cc: Maxim Nikulin , Eli Zaretskii To: Emacs-Devel List Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 07 03:18:41 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 1lq3ub-0002Sq-0Q for ged-emacs-devel@m.gmane-mx.org; Mon, 07 Jun 2021 03:18:41 +0200 Original-Received: from localhost ([::1]:60154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lq3ua-0001tF-0Y for ged-emacs-devel@m.gmane-mx.org; Sun, 06 Jun 2021 21:18:40 -0400 Original-Received: from [2001:470:142:3::10] (port=40268 helo=eggs.gnu.org) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lq3iU-0004Zs-4u for emacs-devel@gnu.org; Sun, 06 Jun 2021 21:06:11 -0400 Original-Received: from [212.227.17.22] (port=46913 helo=mout.gmx.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lq3hU-0008H7-4o for emacs-devel@gnu.org; Sun, 06 Jun 2021 21:05:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1623027814; bh=B7fR1+VceFDe/vwqCFs8GOCn2KFcekI7NCb5tw5kEtU=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject; b=Qzx7ZTX3dC5DyUOC+dkElLEfw4vhU0erQfDHvXcNQZT3JJRSGV4+Vq3+TyUCbZ2ST LyL7Z3j6R544TDLEIF0Kaw2kyPwHlddhzVTWVDCC0zhvnr9CS/IgCdEjvmcSXovpkO QRfQbT6Jcdq5NekLILKiVRWJsx3iV/fmOvleZXlE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from E15-2016.optimum.net ([96.224.230.212]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MeU4y-1lFs9l0Jwi-00aSG6; Mon, 07 Jun 2021 01:36:41 +0200 Content-Disposition: inline X-Provags-ID: V03:K1:7QPljg/6Obo9fcrmJURwgdFIrbzFm6O7ayb8NpFY2/M0O1tFE8Q 93J6OuU789cbiLilHneZ97isbKRllqldNC9nYhFh1LV4vSCfDi1iqC39TRKzsCxoSOD8TSc Kuicyn5ErnkURU6TniVO77V4rG/jCZrPYqY1YXH4hkDpKwqLKpjH4A26fPilYLHksAGiba0 feKqRsSPT71xWzNOhDVKg== X-UI-Out-Filterresults: notjunk:1;V03:K0:lOFpYjZmW3U=:7gisiqZ5vgRhXbIwGKbvsG QZJDPCvEoalIyz3W7f9nuiinjoAgK2+1bOLzHb9aVOB3R/lUSqOuSHi3Oz3dOy4X2tuQbUXV/ BGNi+3Htg4qzUZON8CscVaoi5t9VECc9bGKyE/Ro1z5ksRMn6t2N2xwi1B3kVjbB500LbgNf/ Ba1xFN1aUR8zzNa4Hgy5ZvniHR2WbnyfRv5aetNlins2D2utCagmRyqeNpkIEjPxMGqIgU2PW DEZLoqJSZUeA1bZA2Cd9wP5hiGtmpi2SYuQYdqca6cRuP4xvmG/6oVdeF7cW6VTUJ17jfNlot Fd89FCpCNs1rN0INYh11RisYkAZpVyenmuv8SSiBefATZ85lCqJSZFvOvdhuQHNkKl4NSRAcI cMvF+hFB9lfeH+xZ0AYHVc1POfsYc78VAr+0JWs02sjaqzEgMS5TVYjZ0lhoB71yoL/TxlfqP VCJp2UAWW7MIELosiJguB4fvJGp8y8oas87VqE/J9wi82xSEhgBbNJ1pW3/t4p0lUrCvyM+qJ CHSnULr+ZUqon7SNcAaSRo276bN5MaEIiJeHuVjc/H/3gtoujkAnAr0u1jKt+VLPlIFYXeFYv LRAdCnEtda+0UFbNOH8trkj/Ij79cwPomKo4St4Z7AXFv75kAXf65VVTlQKjnWgdVp9H9RDSS ulN3tfCpFudn3qdVTue01Qlv3dWtoL08rssUEqWjJV4IKaV1qniyujtnPEP5WyadT9+48KI4D 3whWls2QBp0lER1QAAGBXjGabquwe0Wcy7iORzj6XJdi04mDufOro8ShpoQerrVNYv41PFV3 X-Host-Lookup-Failed: Reverse DNS lookup failed for 212.227.17.22 (deferred) Received-SPF: pass client-ip=212.227.17.22; 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_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, RDNS_NONE=0.793, SPOOFED_FREEMAIL_NO_RDNS=0.001, T_SPF_HELO_TEMPERROR=0.01, T_SPF_TEMPERROR=0.01 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:270509 Archived-At: I wasn't cc'ed (and I don't subscribe to the list), so I only now saw the continuation of my post. 1] @Maxim: You seemed to indicate that the default emacs locale is 'C'. That may be true, and I may be mixing up two separate things, but my observation is that I get 'nil' when I check for any related environment variable using function `getenv', and in practice I need to temporarily manually use function setenv to set LC_COLLATE=3DC in order to offer several sorting options in package diredc. Note though that feature isn't performing the sort within emacs; it's temporarily setting a shell environment and having the external ls program perform the sort for emacs-core dired. Thus, my experience has been that the default has been something other than C, at least for LC_COLLATE. I suspect that's true for ALL emacs users. 2] @Eli: You wrote > > The problem with that, of course, is that not every supported > > platform can dynamically change the locale, let alone do that > > efficiently. I have no idea to what actual supported platform you're referring. 3] @ELi: Your wrote > > Text processing in Emacs is generally separate from the current > > locale's rules, > > ... > > So passing a locale argument to functions that produce output, > > with the intent to request some behavior to be tailored to that > > locale, is the only reasonable way to have this kind Agreed. My input here is that there should be clear documentation of how to retrieve a value for that argument from a buffer's context, (maybe the same way that flyspell does?). I see also that I created room for confusion in asking actually for TWO features (single-quote and upper-case I) because the two will behave differently in an expected default condition. The single quote format (for the thousands separator) can be expected to produce a result always for all conditions of locale, while I expect most locale cases won't produce any special output for the upper-case I format option. =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0