Skip Menu |

This queue is for tickets about the PerlIO-via-EscStatus CPAN distribution.

Report information
The Basics
Id: 65141
Status: resolved
Priority: 0/
Queue: PerlIO-via-EscStatus

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

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



Subject: Bleadperl v5.13.8-301-gd658a8a breaks PIO:v:ES 9
As per subject. The commit message of that revision explains: commit d658a8a81c4f311bef688fd51df924a424429f14 Author: David Mitchell <davem@iabyn.com> Date: Sun Jan 16 14:16:20 2011 +0000 restrict \p{IsUserDefined} to In\w+ and In\w+ In L<perlunicode/"User-Defined Character Properties">, it says you can create custom properties by defining subroutines whose names begin with "In" or "Is". However, perl doesn't actually enforce that naming restriction, so \p{foo::bar} will call foo::Bar() if it exists. This commit finally enforces this convention. Note that this broke a number of existing tests for properties, since they didn't always use an Is/In prefix. HTH, Regards,
CC: bug-PerlIO-via-EscStatus [...] rt.cpan.org
Subject: Re: [rt.cpan.org #65141] Bleadperl v5.13.8-301-gd658a8a breaks PIO:v:ES 9
Date: Sat, 29 Jan 2011 09:54:19 +1100
To: ANDK [...] cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
"Andreas Koenig via RT" <bug-PerlIO-via-EscStatus@rt.cpan.org> writes: Show quoted text
> > restrict \p{IsUserDefined} to In\w+ and In\w+
I name the property _IsZero so that it's a private sub _IsZero { "chars" } Is that going to be broken? Is it still possible to make the sub slightly private like that? I also then use the property outside its defining package like /\p{Foo::Bar::_IsZero}/ It's only for some testing, but is an explicit package name for a property allowed, or can it be used only in the defining package? Only in the defining package would seem like an unnecessary restriction.
Subject: Re: [rt.cpan.org #65141] Bleadperl v5.13.8-301-gd658a8a breaks PIO:v:ES 9
Date: Sat, 29 Jan 2011 06:16:02 +0100
To: bug-PerlIO-via-EscStatus [...] rt.cpan.org
From: andreas.koenig.7os6VVqR [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Fri, 28 Jan 2011 17:54:10 -0500, "Kevin Ryde via RT" <bug-PerlIO-via-EscStatus@rt.cpan.org> said:
Show quoted text
> I name the property _IsZero so that it's a private
Show quoted text
> sub _IsZero { "chars" }
Show quoted text
> Is that going to be broken?
Yes. Show quoted text
> Is it still possible to make the sub slightly private like that?
No. Show quoted text
> I also then use the property outside its defining package like
Show quoted text
> /\p{Foo::Bar::_IsZero}/
Package names are freely chooseable. % /home/src/perl/repoperls/installed-perls/perl/v5.13.8-301-gd658a8a/bin/perl -le ' sub IsKevin { qq{0033\t0033\n} } sub Foo::IsKevin { qq{0033\t0033\n} } sub _IsKevin { qq{0033\t0033\n} } print "3" =~ /\p{IsKevin}/; print "3" =~ /\p{Foo::IsKevin}/; print "3" =~ /\p{_IsKevin}/; ' 1 1 Can't find Unicode property definition "_IsKevin" at -e line 7.
RT-Send-CC: andreas.koenig.7os6VVqR [...] franz.ak.mind.de
Thanks, I uploaded a version 10 which might work.