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 1lJmDt-0001Qt-GV for pgsql-general@arkaria.postgresql.org; Tue, 09 Mar 2021 23:57:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lJmDs-0004Bj-FI for pgsql-general@arkaria.postgresql.org; Tue, 09 Mar 2021 23:57:08 +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 1lJmDs-0004Bc-86 for pgsql-general@lists.postgresql.org; Tue, 09 Mar 2021 23:57:08 +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 1lJmDq-0005Fh-AX for pgsql-general@postgresql.org; Tue, 09 Mar 2021 23:57:07 +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 129Nv5Kh2051064; Tue, 9 Mar 2021 18:57:05 -0500 From: Tom Lane To: Vincent Veyron cc: pgsql-general Subject: Re: unexpected character used as group separator by to_char In-reply-to: <20210310000345.2244070de113915b39ae2fca@wanadoo.fr> References: <20210309212821.437795da590228b5c552eead@wanadoo.fr> <20210309221504.309aba890549a6d4e3d16fda@wanadoo.fr> <2044800.1615324927@sss.pgh.pa.us> <20210310000345.2244070de113915b39ae2fca@wanadoo.fr> Comments: In-reply-to Vincent Veyron message dated "Wed, 10 Mar 2021 00:03:45 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2051062.1615334225.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 09 Mar 2021 18:57:05 -0500 Message-ID: <2051063.1615334225@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Vincent Veyron writes: > Tom Lane wrote: >> (I suppose you could also use regexp_replace to convert random forms >> of whitespace to plain ASCII space.) > No dice. 'G' formatting looks like a whitespace, but is different (it ap= pears to be slightly narrower when displayed in html, too) : Huh ... do you have lc_monetary and lc_ctype set the same? The latter is (I believe) what determines the behavior of regex \s. In any case, you could force the issue with a pattern like '[\s\uNNNN]' for whatever the code point of that character is. regards, tom lane