Skip Menu |

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 77494
Status: resolved
Priority: 0/
Queue: URI

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

Bug Information
Severity: Normal
Broken in: 1.60
Fixed in: 1.61



Subject: Unescaped left brace in regex is deprecated
The new deprecation warning in bleadperl hits in the t/escape.t test. The attached patch silences it. Canonical ticket for the change: https://rt.perl.org/rt3//Public/Bug/Display.html?id=113094 Regards,
Subject: URI-1.60-ANDK-01.diff
--- t/escape.t~ 2012-02-11 15:48:54.000000000 +0100 +++ t/escape.t 2012-05-28 09:12:26.817866976 +0200 @@ -34,6 +34,6 @@ skip "Perl 5.8.0 or higher required", 3 if $] < 5.008; ok !eval { print uri_escape("abc" . chr(300)); 1 }; -like $@, qr/^Can\'t escape \\x{012C}, try uri_escape_utf8\(\) instead/; +like $@, qr/^Can\'t escape \\x\{012C}, try uri_escape_utf8\(\) instead/; is uri_escape_utf8(chr(0xFFF)), "%E0%BF%BF";
Fixed in 1.61. Oddly, the warning only manifests itself with 5.21.1 -- it is not present in 5.20.0. And yet, the relevant blead commit (http://perl5.git.perl.org/perl.git/commit/2a53d3314d380af5ab5283758219417c6dfa36e9) first appeared in the 5.17.0 release! was it reverted, perhaps?
5.16.3 did not warn. Early 5.17.0 started with "left brace" warning, around 5.17.8 this went away but gave birth to "useless use of '\'" warning. Reintroduced recently in v5.21.0-382-g412f55b, see https://rt.perl.org/rt3/Ticket/Display.html?id=122146