From: Ian Barwick <barwick@gmx.net>
To: Adam Witney <awitney@sghms.ac.uk>
Cc: pgsql-interfaces <pgsql-interfaces@postgresql.org>
Cc: DBD-pg <dbdpg-general@gborg.postgresql.org>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Subject: Re: Release of DBD-pg 1.22
Date: Mon, 31 Mar 2003 00:28:26 +0200
Message-ID: <200303310028.26123.barwick@gmx.net> (raw)
In-Reply-To: <BAAB64A2.15679%a.witney@sghms.ac.uk>
References: <BAAB64A2.15679%a.witney@sghms.ac.uk>
On Saturday 29 March 2003 15:56, Adam Witney wrote:
> On 28/3/03 3:58 pm, "Bruce Momjian" <pgman@candle.pha.pa.us> 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.
Ian Barwick
barwick@gmx.net
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: barwick@gmx.net, awitney@sghms.ac.uk, dbdpg-general@gborg.postgresql.org, pgman@candle.pha.pa.us
Subject: Re: Release of DBD-pg 1.22
In-Reply-To: <200303310028.26123.barwick@gmx.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox