Skip Menu |

This queue is for tickets about the Encode CPAN distribution.

Report information
The Basics
Id: 103253
Status: resolved
Priority: 0/
Queue: Encode

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

Bug Information
Severity: (no value)
Broken in: 2.72
Fixed in: (no value)



Subject: Encode::XS does not inherit from Encode::Encoding
Encode::XS does not inherit (@ISA) from Encode::Encoding. This is inconsistent with other encodings such as Encode::utf8.

How are we supposed to check that an object respects the Encode::Encoding interface?

How to reproduce:
    $ perl -MEncode -E 'say find_encoding("UTF-8")->isa("Encode::Encoding")'
    1
    $ perl -MEncode -E 'say find_encoding("cp932")->isa("Encode::Encoding")'
   

-- 
Olivier Mengué - http://perlresume.org/DOLMEN - https://gratipay.com/dolmen/
Thank you. Fixed in: https://github.com/dankogai/p5-encode/commit/924c04f168fbc23035ecfbd41dfcdbbf9eb3702e Dan the Maintainer Thereof On Wed Apr 01 14:15:10 2015, DOLMEN wrote: Show quoted text
> Encode::XS does not inherit (@ISA) from Encode::Encoding. This is > inconsistent > with other encodings such as Encode::utf8. > > How are we supposed to check that an object respects the > Encode::Encoding > interface? > > How to reproduce: > $ perl -MEncode -E 'say find_encoding("UTF-8")-
> >isa("Encode::Encoding")'
> 1 > $ perl -MEncode -E 'say find_encoding("cp932")-
> >isa("Encode::Encoding")'
> > > -- > Olivier Mengué - http://perlresume.org/DOLMEN - > https://gratipay.com/dolmen/