develooper Front page | perl.perl5.porters | Postings from August 2016

[perl #128788] Can't turn off "does not map to Unicode" warnings

Thread Previous | Thread Next
Father Chrysostomos via RT
August 2, 2016 04:55
[perl #128788] Can't turn off "does not map to Unicode" warnings
Message ID:
On Mon Aug 01 08:49:14 2016, sprout wrote:
> On Mon Aug 01 08:06:00 2016, wrote:
> > Considering this is an upstream CPAN module, I think we should close
> > this.
> I have confirmed that it is a problem with Encode and have just opened
> <>.

Oh, wait.  I had my one-line diagnostic patch still applied to my local perl repo and ran the tests.  I got these failures:

#   Failed test 'FB_WARN message utf8'
#   at t/fallback.t line 110.
#                   ''
#     doesn't match '(?^:does not map to Unicode)'

#   Failed test 'WARN_ON_ERR message ascii'
#   at t/fallback.t line 124.
#                   ''
#     doesn't match '(?^:does not map to Unicode)'
# Looks like you failed 2 tests of 50.

which suggests to me that PerlIO::encoding (which is core-only) may well be asking for warnings without checking hints.

I think this is something that needs looking into, so I am reopening the ticket.


Father Chrysostomos

via perlbug:  queue: perl5 status: rejected

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About