pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: somloieater@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7999: Regexp with utf8
Date: Wed, 27 Mar 2013 12:19:57 -0400
Message-ID: <13363.1364401197@sss.pgh.pa.us> (raw)
In-Reply-To: <E1UKnf7-0005Sa-L4@wrigleys.postgresql.org>
References: <E1UKnf7-0005Sa-L4@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

somloieater@gmail.com writes:
> PostgreSQL version: 9.1.8

> I've checked with a few other characters which are >1byte in utf8. U+00F0
> counds as \w, but nothing I've tried > FF matches. I wonder if it's
> something to do with >256? 

Yup.  This is partially resolved in PG 9.2, but will never be fixed in
older branches.  From the commit log:
    
    Also, remove the hard-wired limitation to not consider wctype.h results for
    character codes above 255.  It turns out that we can't push the limit as
    far up as I'd originally hoped, because the regex colormap code is not
    efficient enough to cope very well with character classes containing many
    thousand letters, which a Unicode locale is entirely capable of producing.
    Still, we can push it up to U+7FF (which I chose as the limit of 2-byte
    UTF8 characters), which will at least make Eastern Europeans happy pending
    a better solution.  Thus, this commit resolves the specific complaint in
    bug #6457, but not the more general issue that letters of non-western
    alphabets are mostly not recognized as matching [[:alpha:]].

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)

Message-ID: <13363.1364401197@sss.pgh.pa.us>
Permalink:  ../13363.1364401197@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13363.1364401197@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, somloieater@gmail.com
  Subject: Re: BUG #7999: Regexp with utf8
  In-Reply-To: <13363.1364401197@sss.pgh.pa.us>
  References: <E1UKnf7-0005Sa-L4@wrigleys.postgresql.org> <13363.1364401197@sss.pgh.pa.us>

* 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