Skip Menu |
 

This queue is for tickets about the Perl-Critic-Pulp CPAN distribution.

Report information
The Basics
Id: 123922
Status: open
Priority: 0/
Queue: Perl-Critic-Pulp

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

Bug Information
Severity: Important
Broken in: 95
Fixed in: (no value)



Subject: ValuesAndExpressions::ProhibitUnknownBackslash doesn't handle utf8 source code
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-24241-1513791853-920.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 846
Download (untitled) / with headers
text/plain 846b
See this example program: #!/usr/bin/perl use strict; use warnings; use utf8; my $who = shift; print "$who is a 💩\n"; (Note that that symbol is UTF-8 encoding of \N{PILE OF POO}) When I try to tidy this I get: bash $ perlcritic -s ValuesAndExpressions::ProhibitUnknownBackslash insult.pl Fatal error while critiquing "insult.pl": Can't call method "child" on an undefined value at /opt/perl5.26.1/lib/site_perl/5.26.1/Perl/Critic/Policy/ValuesAndExpressions/ProhibitUnknownBackslash.pm line 321. Trace begun at /opt/perl5.26.1/lib/site_perl/5.26.1/Perl/Critic/Command.pm line 258 Perl::Critic::Command::_critique('HASH(0x168ffe0)', 'insult.pl') called at /opt/perl5.26.1/lib/site_perl/5.26.1/Perl/Critic/Command.pm line 64 Perl::Critic::Command::run at /opt/perl5.26.1/bin/perlcritic line 20
X-Ymail-Osg: 0WenzWAVM1khcvONnhIaQfR6qGXvUNN2INubfzMCFniaFn7UDCC2gmwbK7MgP8v _KaLh5797EdRqHiZ8d2HBCTWzMz8viKTTQJ2hfjs7O05UeHHU0UMCpCvfISBBOcmHfDVjxa_aV2N ct8ii.fbshuN.qKBcXjY0WxZh9X6I4DOmpCQ4.pnhqXMs3sQcIKvrQVWalOgawbgqoW9p168.iWA or07upm3r_u8DDY2OMVGqa6NUJN1hNnQX5xuVXhUlj3JGY4XOBGXgT5UoZwbw2K3ntn4hRvGxMbR o9._7Wx5javlsjJtLDKWltchPt4ehYd6aVMCuhd_WUqS4dGFPhRw0R3zo4rUxmVORjTDHm09aSDC MzPMeYHWzMlmZScSeJdLlk_2YYc5Kwf_udv15NRirUlH08PLg_yfP0jL.TKeOp8ltLiHz0XunAjr Xe4AVeysw48NiMQTinOuhs4PY.Yk4DPrNUMncljIu9aPNHVYP7Mt6Vzd4ubIFHyEy1x3YZrdpQfA 6M6UUtB5LfQ--
MIME-Version: 1.0
X-Spam-Status: No, score=-5.22 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, FROM_OUR_RT=-4, SPF_NEUTRAL=0.779] autolearn=ham
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-123922 [...] rt.cpan.org> <rt-4.0.18-24241-1513791853-554.123922-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <8737410zj5.fsf [...] blah.blah>
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.22
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] yahoo.com.au
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 8544F2401BD for <cpan-bug+Perl-Critic-Pulp [...] hipster.bestpractical.com>; Sat, 23 Dec 2017 18:59:44 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hqxNw8KPKRor for <cpan-bug+Perl-Critic-Pulp [...] hipster.bestpractical.com>; Sat, 23 Dec 2017 18:59:42 -0500 (EST)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id 6A1612400C8 for <bug-Perl-Critic-Pulp [...] rt.cpan.org>; Sat, 23 Dec 2017 18:59:42 -0500 (EST)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 3C91566FF9 for <bug-Perl-Critic-Pulp [...] rt.cpan.org>; Sat, 23 Dec 2017 15:59:41 -0800 (PST)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id 181CA66FFA for <bug-Perl-Critic-Pulp [...] rt.cpan.org>; Sat, 23 Dec 2017 15:59:39 -0800 (PST)
Received: from sonic307-3.consmr.mail.bf2.yahoo.com (sonic307-3.consmr.mail.bf2.yahoo.com [74.6.134.42]) by xx1.develooper.com (Postfix) with ESMTP id 7AEEB66FF9 for <bug-Perl-Critic-Pulp [...] rt.cpan.org>; Sat, 23 Dec 2017 15:59:32 -0800 (PST)
Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.bf2.yahoo.com with HTTP; Sat, 23 Dec 2017 23:59:31 +0000
Received: from smtpgate102.mail.bf1.yahoo.com (EHLO blah.blah) ([72.30.28.113]) by smtp406.mail.bf1.yahoo.com (JAMES SMTP Server ) with ESMTPA ID 0186fa4f346d3f6437b61d716da5d2c0 for <bug-Perl-Critic-Pulp [...] rt.cpan.org>; Sat, 23 Dec 2017 23:59:29 +0000 (UTC)
Delivered-To: cpan-bug+Perl-Critic-Pulp [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #123922] ValuesAndExpressions::ProhibitUnknownBackslash doesn't handle utf8 source code
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Return-Path: <user42_kevin [...] yahoo.com.au>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1514073571; bh=AUjhUVt9+wwZF3JKwecVn7BdbssGC6Xcu8O8EsmpmbE=; h=From:To:Subject:References:Date:From:Subject; b=KqNtJG/1/8Eh34wJFxevlwWLgiKYoyZpeZg8nRSvtBLmXML7rGjaDcY4q+qpy8jXHHNxyhkLqLNNknHaoBr02tQxqX3l8XgzI1aIMQtHBChnSf1IWNG8NsUtHUEb+Ob+JMPqRgdGN5kfArmtvIB9/M5sn2KUdcnu82gIclRY3+Glchwr1pOEHppHhrqBR1Y/WULV+1bB652JVkZZSiNC0SVi9qY1j93bq4fpmUE5hUThal594gjOX/0QwwG7EdyiHDvhTNrTV6MJovFMTg7my+AO6jl8p5MlPvGZ7q9MOxq4ORiE37YzxJ8u4emP8OE+snGMTVY+pciBY/AezY6Xww==
X-Original-To: cpan-bug+Perl-Critic-Pulp [...] hipster.bestpractical.com
X-RT-Mail-Extension: perl-critic-pulp
Date: Sun, 24 Dec 2017 10:56:14 +1100
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, SUPERLONG_LINE 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_400_499 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DKIM_SIGNATURE 0, NO_URI_HTTPS 0, REFERENCES 0, SPF_PASS 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CP_NAME_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_YAHOO 0, __HAS_FROM 0, __HAS_MSGID 0, __HELO_YAHOO 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, __NO_HTML_TAG_RAW 0, __PHISH_SPEAR_HTTP_RECEIVED 0, __PHISH_SPEAR_STRUCTURE_1 0, __PHISH_SPEAR_STRUCTURE_2 0, __RDNS_YAHOO 0, __REFERENCES 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __SUBJ_ALPHA_NEGATE 0, __TO_MALFORMED_2 0, __TO_NAME 0, __TO_NAME_DIFF_FROM_ACC 0, __TO_REAL_NAMES 0, __URI_NO_WWW 0, __URI_NS , __USER_AGENT 0, __blackholes.mail-abuse.org_TIMEOUT , __zen.spamhaus.org_ERROR '
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2017.12.23.234815
To: "MARKF via RT" <bug-Perl-Critic-Pulp [...] rt.cpan.org>
From: Kevin Ryde <user42_kevin [...] yahoo.com.au>
RT-Message-ID: <rt-4.0.18-31849-1514073585-1487.123922-0-0 [...] rt.cpan.org>
Content-Length: 424
Download (untitled) / with headers
text/plain 424b
"MARKF via RT" <bug-Perl-Critic-Pulp@rt.cpan.org> writes: Show quoted text
> > Fatal error while critiquing "insult.pl": Can't call method "child" on an undefined value at /opt/perl5.26.1/lib/site_perl/5.26.1/Perl/Critic/Policy/ValuesAndExpressions/ProhibitUnknownBackslash.pm line 321.
Thanks, I didn't watch for the interpolate parse bit failing. New version 96 with that and a hack to try to defang chars PPI doesn't enjoy as code.


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.