Skip Menu |
 

This queue is for tickets about the Locales CPAN distribution.

Report information
The Basics
Id: 105521
Status: resolved
Priority: 0/
Queue: Locales

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

Bug Information
Severity: (no value)
Broken in: 0.33
Fixed in: (no value)

Attachments
0001-Unescaped-left-brace-deprecation-fix.patch.txt



Subject: Locales emits deprecation warnings in perl 5.22
Download (untitled) / with headers
text/plain 2.4k
PERL_DL_NONLAZY=1 "/usr/local/perl/522/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00.load.t ....................... Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/sub { <-- HERE / at /usr/local/cpanel-cpan-rpms/modules/Locales/Locales/blib/lib/Locales.pm line 1016. t/00.load.t ....................... 1/1 # Testing Locales 0.33 t/00.load.t ....................... ok t/01.cldr_parse_inherit_sanity.t .. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/sub { <-- HERE / at /usr/local/cpanel-cpan-rpms/modules/Locales/Locales/blib/lib/Locales.pm line 1016. t/01.cldr_parse_inherit_sanity.t .. 1/7 # Testing Locales 0.33 t/01.cldr_parse_inherit_sanity.t .. ok t/03.cldr_db.t .................... Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/sub { <-- HERE / at lib/Locales.pm line 1016. t/03.cldr_db.t .................... 1/3 # Sanity checking Locales 0.33 DB t/03.cldr_db.t .................... ok t/04.locales_obj.t ................ Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/sub { <-- HERE / at lib/Locales.pm line 1016. t/04.locales_obj.t ................ ok t/042.aa.t ........................ 1/1115 Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/sub { <-- HERE / at lib/Locales.pm line 1016. # Sanity checking Locales::DB::Language::aa 0.09 DB t/042.aa.t ........................ ok t/042.af.t ........................ 1/1115 Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/sub { <-- HERE / at lib/Locales.pm line 1016. # Sanity checking Locales::DB::Language::af 0.09 DB t/042.af.t ........................ ok t/042.agq.t ....................... 1/1115 Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/sub { <-- HERE / at lib/Locales.pm line 1016. # Sanity checking Locales::DB::Language::agq 0.09 DB t/042.agq.t ....................... ok t/042.ak.t ........................ 1/1115 Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/sub { <-- HERE / at lib/Locales.pm line 1016. # Sanity checking Locales::DB::Language::ak 0.09 DB ...
Fix for the issue.
Subject: 0001-Unescaped-left-brace-deprecation-fix.patch.txt
From 5808c77042574d9b3697de6304e436c30151ba47 Mon Sep 17 00:00:00 2001 From: Todd Rinaldo <toddr@cpan.org> Date: Fri, 26 Jun 2015 22:34:58 -0500 Subject: [PATCH] Unescaped left brace deprecation fix RT 105521 --- lib/Locales.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Locales.pm b/lib/Locales.pm index ee1ed50..42ad054 100644 --- a/lib/Locales.pm +++ b/lib/Locales.pm @@ -1013,7 +1013,7 @@ sub normalize_for_key_lookup { sub plural_rule_string_to_javascript_code { my ( $plural_rule_string, $return ) = @_; my $perl = plural_rule_string_to_code( $plural_rule_string, $return ); - $perl =~ s/sub { /function (n) {/; + $perl =~ s/sub \{ /function (n) \{/; $perl =~ s/\$_\[0\]/n/g; $perl =~ s/ \(n \% ([0-9]+)\) \+ \(n-int\(n\)\) /n % $1/g; $perl =~ s/int\(/parseInt\(/g; -- 2.4.0
On Sat Jun 27 00:05:50 2015, TODDR wrote: Show quoted text
> Fix for the issue.
ping.
Download (untitled) / with headers
text/plain 179b
Fixed via github in August (even simpler change than example ;p) and will be in next release: https://github.com/drmuey/p5-Locales/commit/893bfd1775cb29dcd52fd028e35c987aec8e785a
Download (untitled) / with headers
text/plain 297b
On Tue Nov 17 20:38:57 2015, DMUEY wrote: Show quoted text
> Fixed via github in August (even simpler change than example ;p) and > will be in next release: > > https://github.com/drmuey/p5- > Locales/commit/893bfd1775cb29dcd52fd028e35c987aec8e785a
Any idea when this fix will be released? Thanks Racke
Download (untitled) / with headers
text/plain 387b
On Fri Jan 15 06:06:26 2016, HORNBURG wrote: Show quoted text
> On Tue Nov 17 20:38:57 2015, DMUEY wrote:
> > Fixed via github in August (even simpler change than example ;p) and > > will be in next release: > > > > https://github.com/drmuey/p5- > > Locales/commit/893bfd1775cb29dcd52fd028e35c987aec8e785a
> > Any idea when this fix will be released?
I'll do it today, give me about 3 hours ;) thanks!
Download (untitled) / with headers
text/plain 243b
Show quoted text
> > > https://github.com/drmuey/p5- > > > Locales/commit/893bfd1775cb29dcd52fd028e35c987aec8e785a
> > > > Any idea when this fix will be released?
> > I'll do it today, give me about 3 hours ;) thanks!
Just uploaded v0.34 to CPAN, thanks!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.