Re: BUG #2554: ILIKE operator works incorrectly

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org, " JarosÅaw Bojar" <jarek(dot)bojar(at)gmail(dot)com>
Subject: Re: BUG #2554: ILIKE operator works incorrectly
Date: 2006-08-03 22:58:49
Message-ID: 27292.1154645929@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Jarosaw Bojar wrote:
>> ILIKE operator works incorrectly with UTF8 encoding and Polish
>> characters.

> What does SHOW lc_collate say?

Even if the locale is set right, iwchareq() is completely broken
for multibyte charsets: it's trying to apply the system's tolower()
to a pg_wchar, which is highly unlikely to work. This has been a
known problem for awhile, but no one's stepped up to fix it.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Joe Conway 2006-08-03 23:00:55 Re: [BUGS] Patch to allow C extension modules to initialize/finish
Previous Message Tom Lane 2006-08-03 22:52:36 Re: [BUGS] Patch to allow C extension modules to initialize/finish