Skip Menu |

This queue is for tickets about the Regexp-Optimizer CPAN distribution.

Report information
The Basics
Id: 34389
Status: resolved
Priority: 0/
Queue: Regexp-Optimizer

People
Owner: Nobody in particular
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.15
Fixed in: (no value)



Subject: $Config{extensions} not a reason to skip
The 03-utf8.t test has code that skips the entire test when $Config{extensions} does not contain Encode. This is pretty wrong because even when a user has compiled pero without the Encode extension he may well have Encode installed. In fact this was my default setup for a long time: to safe time I compiled my perls without Encode and built it later on demand. This (among other influences) prevented that I discovered the other bug earlier. So my suggestion is this pseudopatch: - require Config; import Config; - if ($Config{'extensions'} !~ /\bEncode\b/) { + unless (eval { require Encode; 1 }) { Thanks,
As of version 0.20 of Regexp::Optimizer now uses Regexp::Assemble instead of Regexp::List to optimize alteration. Dan