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
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-25667-1427912110-929.0-0-0 [...] rt.cpan.org>
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 672
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/
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-25667-1427912110-929.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-25667-1427912110-929.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-26045-1427974650-863.103253-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 680
Download (untitled) / with headers
text/plain 680b
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/


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.