X-Original-To: pgsql-interfaces@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6AE684763C9 for ; Mon, 31 Mar 2003 10:42:22 -0500 (EST) Received: from mailhub1.sghms.ac.uk (firewall.sghms.ac.uk [194.82.50.2]) by postgresql.org (Postfix) with ESMTP id 08207476510 for ; Mon, 31 Mar 2003 04:30:33 -0500 (EST) Received: from [194.82.51.24] (helo=imail) by mailhub1.sghms.ac.uk with esmtp (Exim 4.12) id 18zvac-00057k-00; Mon, 31 Mar 2003 10:28:26 +0100 Received: from [172.16.20.3] (mrc1-003.sghms.ac.uk [172.16.20.3]) by imail.sghms.ac.uk (iPlanet Messaging Server 5.1 HotFix 0.7 (built May 7 2002)) with ESMTPA id <0HCL008LEX2ID2@imail.sghms.ac.uk>; Mon, 31 Mar 2003 10:30:18 +0100 (BST) Date: Mon, 31 Mar 2003 10:28:38 +0100 From: Adam Witney Subject: Re: Release of DBD-pg 1.22 In-reply-to: <200303310028.26123.barwick@gmx.net> To: Ian Barwick Cc: pgsql-interfaces , DBD-pg , Bruce Momjian Message-id: MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT User-Agent: Microsoft-Entourage/10.1.1.2418 X-MailScanner-MH1: Found to be clean X-MailScanner-SpamCheck: not spam, SpamAssassin (score=-31.7, required 5, BAYES_01, EMAIL_ATTRIBUTION, IN_REP_TO, QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES, USER_AGENT_ENTOURAGE) X-Spam-Status: No, hits=-31.7 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES,USER_AGENT_ENTOURAGE autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/181 X-Sequence-Number: 3930 On 30/3/03 11:28 pm, "Ian Barwick" wrote: > On Saturday 29 March 2003 15:56, Adam Witney wrote: >> On 28/3/03 3:58 pm, "Bruce Momjian" wrote: >>> What version of perl do you have? I have 5.005_03, and others have 5.6, >>> and both seem to work. The current test in dbdimp.c is: >>> >>> #ifdef SvUTF8_off >>> if (imp_dbh->pg_enable_utf8) { >>> SvUTF8_off(sv); >>> /* XXX Is this all the character data types? */ >>> if (18 == type || 25 == type || 1042 ==type || 1043 == type) { >>> if (is_high_bit_set(val) && is_utf8_string(val, val_len)) >>> SvUTF8_on(sv); >>> } >>> } >>> #endif >>> >>> Maybe that isn't the right test --- maybe you have a version of perl >>> that passes the #ifdef test, but doesn't have is_utf8_string(). >> >> I have perl 5.6.0. I don't know if it has is_utf8_string()... Where would I >> look for this? > > I'm fuzzy on the details but ISTR Perl 5.6.0 was not one of Perl's better > releases and was replaced fairly quickly with 5.6.1. A bit of googling > returns is_utf8_string() together with 5.6.1 but no references to 5.6. This > is not scientific evidence though. > > Can you do "perldoc perlapi" with 5.6.0? If so the presence / absence > of is_utf8_string() should solve the problem. Yep, there is no trace of is_utf8_string() in perldoc perlapi for 5.6.0 Does this mean that my only option is to upgrade perl? Or will the module still work without it? Thanks for your help adam -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.