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/
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/