[Dbix-class] DBIC under Perl 5.6.1

Matt S Trout dbix-class at trout.me.uk
Mon Sep 18 16:58:15 CEST 2006


m8sf-ijyo at xemaps.com wrote:
> I would like to be able to run DBIc::Class under Perl 5.6.1, but at present, the test t/85utf8.t is failing:
> 
> t/85utf8........................Undefined subroutine utf8::is_utf8 called at /home/williami/DBIx-Class/blib/lib/DBIx/Class/UTF8Columns.pm line 92
> # Looks like your test died before it could output anything.
> t/85utf8........................dubious                                      
>         Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-3
>         Failed 3/3 tests, 0.00% okay
> 
> It's easy to skip this test:
> 
> --- t/85utf8.t.orig 
> +++ t/85utf8.t 
> @@ -7,7 +7,7 @@
>  
>  my $schema = DBICTest->init_schema();
>  
> -eval 'use utf8; 1'
> +eval 'use utf8; use 5.8.0; 1'
>      or plan skip_all => 'Need utf8 run this test';
>  
>  plan tests => 3;
> ====================
> 
> The whole of the rest of the DBIx::Class test suite runs fine under 5.6.1. 
> 
> I don't need international character sets for my app. I know Catalyst uses attributes (my current application is not Catalyst based), but is anybody aware of any 5.8 gotchas in DBIC? Is 5.8.0 a sensible minimal version?

I got most of Catalyst running under 5.6.2 actually, but then the client said 
they needed utf8 support and nobody else seemed to care so I lost interest.

I'm quite happy to support DBIC as far back as 5.6 (a lot of my code is 
written to run happily on 5.005_03 and up out of force of habit :)

I'd bet we should have that test disable itself below 5.8.1 though; memory 
sayeth the 5.8.1 Catalyst dep is largely "utf8 support isn't .0 and so 
actually works"

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Dbix-class mailing list