Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UKt51-0001Vy-UE for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Mar 2013 16:20:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UKt51-0002gj-De for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Mar 2013 16:20:03 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UKt50-0002fh-Gk for pgsql-bugs@postgresql.org; Wed, 27 Mar 2013 16:20:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UKt4y-0006ck-5J for pgsql-bugs@postgresql.org; Wed, 27 Mar 2013 16:20:01 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r2RGJvJX013364; Wed, 27 Mar 2013 12:19:57 -0400 (EDT) From: Tom Lane To: somloieater@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7999: Regexp with utf8 In-reply-to: References: Comments: In-reply-to somloieater@gmail.com message dated "Wed, 27 Mar 2013 10:32:57 -0000" Date: Wed, 27 Mar 2013 12:19:57 -0400 Message-ID: <13363.1364401197@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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