X-Original-To: pgsql-interfaces@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3A057475A71 for ; Sun, 30 Mar 2003 17:29:58 -0500 (EST) Received: from post.webmailer.de (natsmtp01.webmailer.de [192.67.198.81]) by postgresql.org (Postfix) with ESMTP id 2DE1C475921 for ; Sun, 30 Mar 2003 17:29:22 -0500 (EST) Received: from ianb.local (pD95177DC.dip.t-dialin.net [217.81.119.220]) by post.webmailer.de (8.12.8/8.8.7) with ESMTP id h2UMT4Ct022321; Mon, 31 Mar 2003 00:29:04 +0200 (MEST) Content-Type: text/plain; charset="iso-8859-1" From: Ian Barwick To: Adam Witney Subject: Re: Release of DBD-pg 1.22 Date: Mon, 31 Mar 2003 00:28:26 +0200 X-Mailer: KMail [version 1.4] Cc: pgsql-interfaces , DBD-pg , Bruce Momjian References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200303310028.26123.barwick@gmx.net> X-Spam-Status: No, hits=-30.4 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,NO_DNS_FOR_FROM, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES 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/179 X-Sequence-Number: 3928 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 =3D=3D type || 25 =3D=3D type || 1042 =3D=3Dtype || 1043 = =3D=3D 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. Ian Barwick barwick@gmx.net