pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #5743: Regexp engine fails to case-insensitively match multi-byte codepoints
2+ messages / 2 participants
[nested] [flat]
* BUG #5743: Regexp engine fails to case-insensitively match multi-byte codepoints
@ 2010-11-04 00:48 Vlad Romascanu <vromascanu@accurev.com>
2010-11-04 03:52 ` Re: BUG #5743: Regexp engine fails to case-insensitively match multi-byte codepoints Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Vlad Romascanu @ 2010-11-04 00:48 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged online:
Bug reference: 5743
Logged by: Vlad Romascanu
Email address: vromascanu@accurev.com
PostgreSQL version: 8.4.3
Operating system: Windows, Linux
Description: Regexp engine fails to case-insensitively match
multi-byte codepoints
Details:
Already reported in 2006 but seems to have fallen through the cracks (I can
find no followup.) Problem still exists in v8.4.3.
Problem still appears to be pg_wc_tolower downcasting to char before calling
tolower() (instead of calling towlower().)
This one of several inconsistencies unfortunately still present in
case-insensitive regexp vs. LOWER(str) [str_lower] treatment (including char
to wchar conversion using MultiByteToWideChar/mbstowcs vs. char2wchar, or
towlower vs. pg_wc_tolower.)
Current workaround is to use LOWER(str) ~ LOWER('regexp').
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #5743: Regexp engine fails to case-insensitively match multi-byte codepoints
2010-11-04 00:48 BUG #5743: Regexp engine fails to case-insensitively match multi-byte codepoints Vlad Romascanu <vromascanu@accurev.com>
@ 2010-11-04 03:52 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2010-11-04 03:52 UTC (permalink / raw)
To: Vlad Romascanu <vromascanu@accurev.com>; +Cc: pgsql-bugs
"Vlad Romascanu" <vromascanu@accurev.com> writes:
> Description: Regexp engine fails to case-insensitively match
> multi-byte codepoints
> Already reported in 2006 but seems to have fallen through the cracks (I can
> find no followup.) Problem still exists in v8.4.3.
It's fixed in 9.0, at least for cases using UTF8 encoding.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2010-11-04 03:52 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-11-04 00:48 BUG #5743: Regexp engine fails to case-insensitively match multi-byte codepoints Vlad Romascanu <vromascanu@accurev.com>
2010-11-04 03:52 ` Tom Lane <tgl@sss.pgh.pa.us>
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