pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Heikki Linnakangas <hlinnaka@iki.fi>
To: adam.warland@infor.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #19341: REPLACE() fails to match final character when using nondeterministic ICU collation
Date: Tue, 02 Dec 2025 18:45:47 +0100
Message-ID: <9e6f15bbd30f8d64027ee32551bdcaed9506fc9f.camel@cybertec.at> (raw)
In-Reply-To: <6387cb3e-aec8-41a0-acef-bacdbfb435db@iki.fi>
References: <19341-1d9a22915edfec58@postgresql.org>
	<60b467ac47d5c6bbb9c21c3bdfecce8e5de60cda.camel@cybertec.at>
	<6935ea1e-cfb1-400b-9057-3d43b55d621a@iki.fi>
	<6387cb3e-aec8-41a0-acef-bacdbfb435db@iki.fi>

On Tue, 2025-12-02 at 19:29 +0200, Heikki Linnakangas wrote:
> I added a simple test for this, and I think this is still not quite 
> right. I added the following to collate.icu.utf test:
> 
> +-- Test for match at the end of the string.  (We had a bug on that
> +-- once)
> +SELECT a, b, replace(b COLLATE ignore_accents, 'te', 'ma') FROM test4nfd;
> + a |  b   | replace
> +---+------+---------
> + 1 | cote | coma
> + 2 | côte | coma
> + 3 | coté | coma
> + 4 | côté | coma
> +(4 rows)
> +
> 
> In the added test query, the accents on the 'o' are stripped, which 
> doesn't look correct.

I am not sure if that is OK or not (after all, it's an accent
insensitive collation, so "coma" and "côma" should be the same).

But it seems unrelated to the bug report at hand.

Yours,
Laurenz Albe





view thread (16+ messages)  latest in thread

Message-ID: <9e6f15bbd30f8d64027ee32551bdcaed9506fc9f.camel@cybertec.at>
Permalink:  ../9e6f15bbd30f8d64027ee32551bdcaed9506fc9f.camel@cybertec.at/
Also on:    postgresql.org/message-id/9e6f15bbd30f8d64027ee32551bdcaed9506fc9f.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: laurenz.albe@cybertec.at, hlinnaka@iki.fi, adam.warland@infor.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #19341: REPLACE() fails to match final character when using nondeterministic ICU collation
  In-Reply-To: <9e6f15bbd30f8d64027ee32551bdcaed9506fc9f.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox