Skip Menu |

This queue is for tickets about the Win32 CPAN distribution.

Report information
The Basics
Id: 56971
Status: rejected
Priority: 0/
Queue: Win32

People
Owner: Nobody in particular
Requestors: BOLDRA [...] boldra.org
Cc:
AdminCc:

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



Subject: GetFolderPath.t tests on false assumption
The test program ext\Win32\t\GetFolderPath.t assumes that CSIDL_WINDOWS is the same as $ENV{WINDIR}, and this is not always the case. C:\Temp\WinAdm>perl -MWin32 -E "say for Win32::GetFolderPath(Win32::CSIDL_WINDOWS), $ENV{WINDIR}" C:\Documents and Settings\r3setup.TWDF1820\WINDOWS C:\WINDOWS workaround: set WINDIR to whatever value CSIDL_WINDOWS returns Details of windows system: Kernel version: Microsoft Windows Server 2003, Multiprocessor Free Product type: Enterprise Edition Product version: 5.2 Service pack: 2 Kernel build number: 3790 Perl used was strawberry 5.10.1
On Tue Apr 27 09:42:12 2010, BOLDRA wrote: Show quoted text
> The test program ext\Win32\t\GetFolderPath.t assumes that CSIDL_WINDOWS > is the same as $ENV{WINDIR}, and this is not always the case. > > C:\Temp\WinAdm>perl -MWin32 -E "say for > Win32::GetFolderPath(Win32::CSIDL_WINDOWS), $ENV{WINDIR}" > C:\Documents and Settings\r3setup.TWDF1820\WINDOWS > C:\WINDOWS
That is contrary to Microsoft documentation for CSIDL_WINDOWS: | The Windows directory or SYSROOT. This corresponds to the %windir% or | %SYSTEMROOT% environment variables. A typical path is C:\Windows. http://msdn.microsoft.com/en-us/library/bb762494%28VS.85%29.aspx