Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r4qP7-00AVHg-JZ for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Nov 2023 22:36:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r4qP5-0052SK-8j for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Nov 2023 22:36:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r4qP4-0052SB-V3 for pgsql-hackers@lists.postgresql.org; Sun, 19 Nov 2023 22:36:34 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r4qOy-007JhG-B8 for pgsql-hackers@postgresql.org; Sun, 19 Nov 2023 22:36:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 3AJMaObe1155475; Sun, 19 Nov 2023 17:36:24 -0500 From: Tom Lane To: Thomas Munro cc: Tristan Partin , pgsql-hackers Subject: Re: On non-Windows, hard depend on uselocale(3) In-reply-to: References: <2689177.1700070346@sss.pgh.pa.us> <2946058.1700081498@sss.pgh.pa.us> <12842.1700083028@sss.pgh.pa.us> <98824.1700089582@sss.pgh.pa.us> <664255.1700245108@sss.pgh.pa.us> <810814.1700261928@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Mon, 20 Nov 2023 11:00:14 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1155473.1700433384.1@sss.pgh.pa.us> Date: Sun, 19 Nov 2023 17:36:24 -0500 Message-ID: <1155474.1700433384@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > BTW is this comment in snprintf.c true? > * 1. No locale support: the radix character is always '.' and the ' > * (single quote) format flag is ignored. > It is in the backend but only because we nail down LC_NUMERIC early > on, not because of any property of snprintf.c, no? Hmm, the second part of it is true. But given that we punt float formatting to libc, I think you are right that the first part depends on LC_NUMERIC being frozen. regards, tom lane