Skip Menu |

This queue is for tickets about the Win32 CPAN distribution.

Report information
The Basics
Id: 127836
Status: patched
Priority: 0/
Queue: Win32

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

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



Subject: Cygwin: wcslen(), wcscpy() called without being declared
Win32.xs: In function ‘void w32_GetLongPathName(PerlInterpreter*, CV*)’: Win32.xs:1528:13: error: ‘wcslen’ was not declared in this scope if (wcslen(wstr) < countof(wide_path)) { ^~~~~~ Win32.xs:1528:13: note: suggested alternative: ‘listen’ if (wcslen(wstr) < countof(wide_path)) { ^~~~~~ listen Win32.xs:1529:13: error: ‘wcscpy’ was not declared in this scope wcscpy(wide_path, wstr); ^~~~~~ Win32.xs:1529:13: note: suggested alternative: ‘wctype’ wcscpy(wide_path, wstr); ^~~~~~ wctype This causes the build to fail if perl is built with g++ on cygwin. Adding: #include <wchar.h> fixes the problem. Tony
On Wed Nov 28 21:33:11 2018, TONYC wrote: Show quoted text
> > This causes the build to fail if perl is built with g++ on cygwin. > > Adding: > > #include <wchar.h> > > fixes the problem.
Thank you! Fix applied in https://github.com/perl-libwin32/win32/pull/17
Hi Jan, On 2019-05-06 03:10:25, JDB wrote: Show quoted text
> On Wed Nov 28 21:33:11 2018, TONYC wrote:
> > > > This causes the build to fail if perl is built with g++ on cygwin. > > > > Adding: > > > > #include <wchar.h> > > > > fixes the problem.
> > Thank you! Fix applied in https://github.com/perl-libwin32/win32/pull/17
Would it be possible to get a CPAN release out, so we can pull this into Perl core? Thanks, - ilmari
On Fri Jul 19 05:33:21 2019, ilmari wrote: Show quoted text
> Would it be possible to get a CPAN release out, so we can pull this into Perl core?
I've just uploaded Win32-0.53 to CPAN. In addition to this bug fix it also includes some improvements to Win32::GetOSDisplayName() for various Win10 and Windows Server 2016/2019 versions. Cheers, -Jan