develooper Front page | perl.perl5.porters | Postings from September 2017

[perl #131683] Encode::ONLY_PRAGMA_WARNINGS in$PerlIO::encoding::fallback

Thread Previous | Thread Next
From:
Tony Cook via RT
Date:
September 13, 2017 05:58
Subject:
[perl #131683] Encode::ONLY_PRAGMA_WARNINGS in$PerlIO::encoding::fallback
Message ID:
rt-4.0.24-19080-1505282321-166.131683-15-0@perl.org
On Tue, 12 Sep 2017 16:06:31 -0700, pali@cpan.org wrote:
> In attachment you can find patch with rewritten encode/decode/from_to
> functions. Seems it was not a big problem.
> 
> With this patch there is no goto in warning messages...
> 
> $ perl -Iblib/lib -Iblib/arch -MEncode -le 'my $x = encode("utf-16",
> (my $y = chr(0xdc10)),
> &Encode::FB_WARN); print "no croak"'
> 
> UTF-16 surrogate U+DC10 in subroutine entry at -e line 1.
> no croak

That looks sane to me.

Tony


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=131683

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About