Re: Wrong results using initcap() with non normalized string

2019-10-03 Thread Juan José Santamaría Flecha
On Sun, Sep 29, 2019 at 3:38 AM Alvaro Herrera wrote: > > The UTF8 bits looks reasonable to me. I guess the other part of that > question is whether we support any other multibyte encoding that > supports combining characters. Maybe for cases other than UTF8 we can > test for 0-width chars

Re: Wrong results using initcap() with non normalized string

2019-09-28 Thread Alvaro Herrera
On 2019-Sep-22, Juan José Santamaría Flecha wrote: > The attached patch addresses the comment about assuming UTF8. The UTF8 bits looks reasonable to me. I guess the other part of that question is whether we support any other multibyte encoding that supports combining characters. Maybe for

Re: Wrong results using initcap() with non normalized string

2019-09-20 Thread Alvaro Herrera
On 2019-Sep-20, Tom Lane wrote: > =?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?= > writes: > > I have come around a strange situation when using a unicode string > > that has non normalized characters. The attached script 'initcap.sql' > > can reproduce the problem. For illustration

Re: Wrong results using initcap() with non normalized string

2019-09-20 Thread Tom Lane
=?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?= writes: > I have come around a strange situation when using a unicode string > that has non normalized characters. The attached script 'initcap.sql' > can reproduce the problem. > The attached patch can fix the issue. If we're going to start