[rt.cpan.org #56971] GetFolderPath.t tests on false assumption

[email protected] ("Jan Dubois via RT")
Newsgroups perl.libwin32
Message-ID <[email protected]>
Wed Dec 08 15:23:32 2010: Request 56971 was acted upon.
Transaction: Correspondence added by JDB
       Queue: Win32
     Subject: GetFolderPath.t tests on false assumption
   Broken in: 0.39
    Severity: Normal
       Owner: Nobody
  Requestors: [email protected]
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=56971 >


On Tue Apr 27 09:42:12 2010, BOLDRA wrote:
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.