Skip Menu |

This queue is for tickets about the XML-Parser CPAN distribution.

Report information
The Basics
Id: 99789
Status: resolved
Priority: 0/
Queue: XML-Parser

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

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



Subject: inappropriate files being installed into PERL5LIB
These files are being installed into PERL5LIB and do not belong there - they are not a .pod file that can be viewed with 'perldoc', nor do they contain executable code. The proper location for supporting data files that accompany a distribution is in a sharedir -- use File::ShareDir::Install within Makefile.PL to set up the directory, and access the directory name from code using File::ShareDir.
On 2014-10-24 16:41:41, ETHER wrote: Show quoted text
> These files are being installed into PERL5LIB and do not belong there > - they are not a .pod file that can be viewed with 'perldoc', nor do > they contain executable code. > > The proper location for supporting data files that accompany a > distribution is in a sharedir -- use File::ShareDir::Install within > Makefile.PL to set up the directory, and access the directory name > from code using File::ShareDir.
The file list: lib/XML/Parser/Encodings/Japanese_Encodings.msg lib/XML/Parser/Encodings/README lib/XML/Parser/Encodings/big5.enc lib/XML/Parser/Encodings/euc-kr.enc lib/XML/Parser/Encodings/ibm866.enc lib/XML/Parser/Encodings/iso-8859-2.enc lib/XML/Parser/Encodings/iso-8859-3.enc lib/XML/Parser/Encodings/iso-8859-4.enc lib/XML/Parser/Encodings/iso-8859-5.enc lib/XML/Parser/Encodings/iso-8859-7.enc lib/XML/Parser/Encodings/iso-8859-8.enc lib/XML/Parser/Encodings/iso-8859-9.enc lib/XML/Parser/Encodings/koi8-r.enc lib/XML/Parser/Encodings/windows-1250.enc lib/XML/Parser/Encodings/windows-1251.enc lib/XML/Parser/Encodings/windows-1252.enc lib/XML/Parser/Encodings/windows-1255.enc lib/XML/Parser/Encodings/x-euc-jp-jisx0221.enc lib/XML/Parser/Encodings/x-euc-jp-unicode.enc lib/XML/Parser/Encodings/x-sjis-cp932.enc lib/XML/Parser/Encodings/x-sjis-jdk117.enc lib/XML/Parser/Encodings/x-sjis-jisx0221.enc lib/XML/Parser/Encodings/x-sjis-unicode.enc
On Fri Oct 24 19:44:04 2014, ETHER wrote: Show quoted text
> On 2014-10-24 16:41:41, ETHER wrote:
> > These files are being installed into PERL5LIB and do not belong there > > - they are not a .pod file that can be viewed with 'perldoc', nor do > > they contain executable code.
Actually per the README: This directory contains binary encoding maps for some selected encodings. If they are placed in a directory listed in @XML::Parser::Expat::Encoding_Path, then they are automatically loaded by the XML::Parser::Expat::load_encoding function as needed. Otherwise you may load what you need directly by explicitly calling this function. This was not my doing so I lack background on this stuff. I suspect it would require a significant change to make this work and I am suspicious that I would end up breaking downstream distros of this module by doing so or who ship additional or altered encodings. Other than that it's annoying, what is the problem you're trying to solve?
Ticket migrated to github as https://github.com/toddr/XML-Parser/issues/71