Skip Menu |
Report information
Id: 124032
Status: resolved
Priority: 0/
Queue: perl5

Owner: Nobody
Requestors: ether <ether [at] cpan.org>
Cc: dolmen <dolmen [at] cpan.org>
AdminCc:

Operating System: Win32
PatchStatus: (no value)
Severity: low
Type:
Perl Version: 5.21.9
Fixed In: (no value)



Subject: I18N::Langinfo not documented as not available on MSWin32
Download (untitled) / with headers
text/plain 498b
I18N::Langinfo is a core module, but apparently not available on Windows. It would be extremely helpful for module authors if this fact were noted in its documentation, so as to avoid the unfortunate situation of someone adding it as a prerequisite to their distribution, and therefore preventing installation on MSWin32. (As well, could it be explained *why* it's not available? Perhaps a workaround can be found? or some interfaces stubbed out rather than the entire module not being installed?)
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 660b
On Mon Mar 09 11:12:37 2015, ether wrote: Show quoted text
> I18N::Langinfo is a core module, but apparently not available on > Windows. It would be extremely helpful for module authors if this fact > were noted in its documentation, so as to avoid the unfortunate > situation of someone adding it as a prerequisite to their > distribution, and therefore preventing installation on MSWin32. > > (As well, could it be explained *why* it's not available? Perhaps a > workaround can be found? or some interfaces stubbed out rather than > the entire module not being installed?)
History of previous changes: http://www.nntp.perl.org/group/perl.perl5.changes/2005/04/msg11975.html
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 767b
On Mon Mar 09 11:38:38 2015, ether wrote: Show quoted text
> On Mon Mar 09 11:12:37 2015, ether wrote:
> > I18N::Langinfo is a core module, but apparently not available on > > Windows. It would be extremely helpful for module authors if this > > fact > > were noted in its documentation, so as to avoid the unfortunate > > situation of someone adding it as a prerequisite to their > > distribution, and therefore preventing installation on MSWin32.
This also raises another question -- do we have *anywhere* where we document the matrix of module / platform compatibilities? If this was available programmatically, we could write an author test or toolchain plugin around it -- e.g. "assert that this distribution does not pull in prereqs that are unavailable on certain platforms".
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 550b
On Mon Mar 09 11:12:37 2015, ether wrote: Show quoted text
> I18N::Langinfo is a core module, but apparently not available on > Windows.
Can you identify the mechanism by which its unavailability on Windows is enforced? ##### $ ack -i win ext/I18N-Langinfo ext/I18N-Langinfo/Langinfo.c 65:# if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING) ext/I18N-Langinfo/Langinfo.pm 98:The following example will import the langinfo() function itself and ##### I couldn't find anything specific in the code. Thank you very much. -- James E Keenan (jkeenan@cpan.org)
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 351b
On Mon Mar 09 18:02:19 2015, jkeenan wrote: Show quoted text
> On Mon Mar 09 11:12:37 2015, ether wrote:
> > I18N::Langinfo is a core module, but apparently not available on > > Windows.
> > Can you identify the mechanism by which its unavailability on Windows > is enforced?
Everything I know is in this ticket: https://github.com/xenoterracide/pod-spell/issues/18
Date: Tue, 10 Mar 2015 11:35:26 -0700
From: Jan Dubois <jand [...] activestate.com>
CC: Perl 5 Porters <perl5-porters [...] perl.org>
Subject: Re: [perl #124032] I18N::Langinfo not documented as not available on MSWin32
To: bulk 88 via RT <perlbug-followup [...] perl.org>
Download (untitled) / with headers
text/plain 857b
On Mon, Mar 9, 2015 at 6:47 PM, Karen Etheridge via RT <perlbug-followup@perl.org> wrote: Show quoted text
> On Mon Mar 09 18:02:19 2015, jkeenan wrote:
>> On Mon Mar 09 11:12:37 2015, ether wrote:
>> > I18N::Langinfo is a core module, but apparently not available on >> > Windows.
>> >> Can you identify the mechanism by which its unavailability on Windows >> is enforced?
> > Everything I know is in this ticket: https://github.com/xenoterracide/pod-spell/issues/18
I18N::Langinfo is not built on Windows because nl_langinfo() does not exist. If you manually build and install it, it will just croak at runtime: SV* langinfo(code) int code PROTOTYPE: _ CODE: #ifdef HAS_NL_LANGINFO RETVAL = newSVpv(nl_langinfo(code), 0); #else croak("nl_langinfo() not implemented on this architecture"); #endif OUTPUT: RETVAL Cheers, -Jan
RT-Send-CC: perl5-porters [...] perl.org
As of 5.28, this module will be available on all platforms -- Karl Williamson
Download (untitled) / with headers
text/plain 317b
Thank you for filing this report. You have helped make Perl better. With the release yesterday of Perl 5.28.0, this and 185 other issues have been resolved. Perl 5.28.0 may be downloaded via: https://metacpan.org/release/XSAWYERX/perl-5.28.0 If you find that the problem persists, feel free to reopen this ticket.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org