Skip Menu |

This queue is for tickets about the URI CPAN distribution.

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

Owner: Nobody in particular
Requestors: ANDK [...]

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

Subject: Unescaped left brace in regex is deprecated
Download (untitled) / with headers
text/plain 205b
The new deprecation warning in bleadperl hits in the t/escape.t test. The attached patch silences it. Canonical ticket for the change: 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";
Download (untitled) / with headers
text/plain 286b
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 ( first appeared in the 5.17.0 release! was it reverted, perhaps?
Download (untitled) / with headers
text/plain 250b
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

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

Please report any issues with to