Skip Menu |

This queue is for tickets about the Unicode-String CPAN distribution.

Report information
The Basics
Id: 120200
Status: open
Priority: 0/
Queue: Unicode-String

People
Owner: Nobody in particular
Requestors: emazep [...] gmail.com
Cc:
AdminCc:

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



Subject: $VERSION wrongly set in Unicode::CharName
Line 47 in Unicode/CharName.pm says: $VERSION = sprintf("%d.%02d", q$Revision$ =~ /(\d+)\.(\d+)/); where the regex clearly does not pick anything, and therefore $VERSION is set to "0.00". This causes cpanp (and possibly other tools as well) to insist that the Unicode::CharName module is outdated, as CPAN has a release with an higher $VERSION value (currently 1.07), though older. Metacpan also reports "Module version: 0.00", as you can see here: https://metacpan.org/pod/release/GAAS/Unicode-String-2.10/lib/Unicode/CharName.pm Thank you for your great work! -Emanuele Zeppieri
On 2017-02-10 22:43:23, emazep wrote: Show quoted text
> Line 47 in Unicode/CharName.pm says: > > $VERSION = sprintf("%d.%02d", q$Revision$ =~ /(\d+)\.(\d+)/); > > where the regex clearly does not pick anything, and therefore $VERSION > is set to "0.00". > > This causes cpanp (and possibly other tools as well) to insist that > the Unicode::CharName module is outdated, as CPAN has a release with > an higher $VERSION value (currently 1.07), though older. > > Metacpan also reports "Module version: 0.00", as you can see here: > https://metacpan.org/pod/release/GAAS/Unicode-String- > 2.10/lib/Unicode/CharName.pm
A possible (and trivial) patch: http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Unicode-String-2.10-RT120200.patch I am not a friend of "consistent versions", so the new version is 1.08, not 2.10 or so. CPAN.pm users may use this distroprefs file for automatic patching: https://github.com/eserte/srezic-cpan-distroprefs/blob/master/Unicode-String.yml
On 2017-02-10 22:43:23, emazep wrote: Show quoted text
> Line 47 in Unicode/CharName.pm says: > > $VERSION = sprintf("%d.%02d", q$Revision$ =~ /(\d+)\.(\d+)/); > > where the regex clearly does not pick anything, and therefore $VERSION > is set to "0.00". > > This causes cpanp (and possibly other tools as well) to insist that > the Unicode::CharName module is outdated, as CPAN has a release with > an higher $VERSION value (currently 1.07), though older. > > Metacpan also reports "Module version: 0.00", as you can see here: > https://metacpan.org/pod/release/GAAS/Unicode-String- > 2.10/lib/Unicode/CharName.pm
Additionally, newer CPAN.pm refuses installation if the configuration option "allow_installing_module_downgrades" is set to a false value (which I think is the default): Testing/Installation stopped: allow_installing_module_downgrades: GAAS/GAAS/Unicode-String-2.10.tar.gz (called for G/GA/GAAS/GAAS/Unicode-String-2.10.tar.gz) contains downgrading module(s) (e.g. 'Unicode/CharName.pm' would downgrade installed '1.08' to '0.00')