From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Greg Sabino Mullane <greg(at)turnstep(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [HACKERS] plperl and regexps with accented characters - incompatible? |
Date: | 2007-11-28 22:13:08 |
Message-ID: | 474DE7F4.4030409@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers pgsql-patches |
Andrew Dunstan wrote:
>
>
> Greg Sabino Mullane wrote:
>> Just as a followup, I reported this as a bug and it is being looked
>> at and discussed:
>>
>> http://rt.perl.org/rt3//Public/Bug/Display.html?id=47576
>>
>> Appears there is no easy resolution yet.
>>
>>
>>
>
> We might be able to do something with the suggested workaround. I will
> see what I can do, unless you have already tried.
>
>
OK, I have a fairly ugly manual workaround, that I don't yet understand,
but seems to work for me.
In your session, run the following code before you do anything else:
CREATE OR REPLACE FUNCTION test((text) RETURNS bool LANGUAGE plperl as $$
return shift =~ /\xa9/i ? 'true' : 'false';
$$;
SELECT test('a');
DROP FUNCTION test(text);
After that we seem to be good to go with any old UTF8 chars.
I'm looking at automating this so the workaround can be hidden, but I'd
rather understand it first.
(Core guys: If we can hold RC1 for a bit while I get this fixed that
would be good.)
cheers
andrew
From | Date | Subject | |
---|---|---|---|
Next Message | Trent Shipley | 2007-11-28 22:28:02 | Re: PostgresSQL vs. Informix |
Previous Message | JonXP | 2007-11-28 22:00:58 | Cascading Trigger Prevention |
From | Date | Subject | |
---|---|---|---|
Next Message | Devrim GÜNDÜZ | 2007-11-28 22:16:02 | Re: developing for psqlodbc |
Previous Message | Magnus Hagander | 2007-11-28 21:09:46 | Re: Time to update list of contributors |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-11-28 22:17:38 | Re: Partition: use triggers instead of rules |
Previous Message | Joshua D. Drake | 2007-11-28 21:03:42 | Re: [PATCHES] Partition: use triggers instead of rules |