Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJjnx-00048N-A6 for pgsql-general@arkaria.postgresql.org; Tue, 09 Mar 2021 21:22:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lJjnv-0007n2-By for pgsql-general@arkaria.postgresql.org; Tue, 09 Mar 2021 21:22:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJjnu-0007mu-Lk for pgsql-general@lists.postgresql.org; Tue, 09 Mar 2021 21:22:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJjns-00040E-OS for pgsql-general@postgresql.org; Tue, 09 Mar 2021 21:22:09 +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 129LM7L82044801; Tue, 9 Mar 2021 16:22:07 -0500 From: Tom Lane To: Vincent Veyron cc: "David G. Johnston" , pgsql-general Subject: Re: unexpected character used as group separator by to_char In-reply-to: <20210309221504.309aba890549a6d4e3d16fda@wanadoo.fr> References: <20210309212821.437795da590228b5c552eead@wanadoo.fr> <20210309221504.309aba890549a6d4e3d16fda@wanadoo.fr> Comments: In-reply-to Vincent Veyron message dated "Tue, 09 Mar 2021 22:15:04 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2044799.1615324927.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 09 Mar 2021 16:22:07 -0500 Message-ID: <2044800.1615324927@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Vincent Veyron writes: > Having a database with the proper lc_numeric setting for each country, a= nd using to_char/to_number to manipulate numbers is much more appealing th= an writing my own parser in my front end. But this weird space is getting = in my way. The point here is that 'G' and related format codes act as specified by your LC_MONETARY locale. If you don't like the results, you need to use a different locale. (I suppose you could also use regexp_replace to convert random forms of whitespace to plain ASCII space.) regards, tom lane