pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vlad Romascanu <vromascanu@accurev.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #5743: Regexp engine fails to case-insensitively match multi-byte codepoints
Date: Thu, 4 Nov 2010 00:48:39 GMT
Message-ID: <201011040048.oA40md61095262@wwwmaster.postgresql.org> (raw)


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').



view thread (2+ messages)  latest in thread

Message-ID: <201011040048.oA40md61095262@wwwmaster.postgresql.org>
Permalink:  ../201011040048.oA40md61095262@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201011040048.oA40md61095262@wwwmaster.postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: vromascanu@accurev.com
  Subject: Re: BUG #5743: Regexp engine fails to case-insensitively match multi-byte codepoints
  In-Reply-To: <201011040048.oA40md61095262@wwwmaster.postgresql.org>
  References: <201011040048.oA40md61095262@wwwmaster.postgresql.org>

* 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