Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 48A3B1337B50 for ; Wed, 24 Nov 2010 12:43:45 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 94098-01 for ; Wed, 24 Nov 2010 16:43:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 955531337B39 for ; Wed, 24 Nov 2010 12:43:44 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id oAOGhhng083128 for ; Wed, 24 Nov 2010 16:43:43 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id oAOGhhB5083127; Wed, 24 Nov 2010 16:43:43 GMT (envelope-from www) Date: Wed, 24 Nov 2010 16:43:43 GMT Message-Id: <201011241643.oAOGhhB5083127@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5766: regexp \y doesn't work properly when a word starts on ends with a UTF-8 char From: "Grzegorz Daniluk" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201011/156 X-Sequence-Number: 28736 The following bug has been logged online: Bug reference: 5766 Logged by: Grzegorz Daniluk Email address: gdaniluk@gmail.com PostgreSQL version: 9.0.1 Operating system: Windows 7 64-bit Description: regexp \y doesn't work properly when a word starts on ends with a UTF-8 char Details: select regexp_replace('Foo Pasaż Bar', E'\\yPasaż\\y', ''); Above query doesn't replace the word 'Pasaż'. It returns full 'Foo Pasaż Bar' string, when the correct behavior is to return 'Foo Bar'. When the 'ż' is replaced with normal ASCII character like 'z', regexp_replace works as expected. My db details: ENCODING = 'UTF8' LC_COLLATE = 'Polish_Poland.1250' LC_CTYPE = 'Polish_Poland.1250'