Subject: | File::HomeDir::Windows should use Win32::GetFolderPath() |
File::HomeDir should use Win32::GetFolderPath() to locate special
folders instead of poking around in the registry. Some folders are also
only created on first use, so they don't exist in the registry until
they have been created. Win32::GetFolderPath() supports an optional
second argument to create these special folders if they don't yet exist.
You should require Win32 0.29 or later to get a version that is robust
with non-ANSI usernames when running with older Perl versions (old Perl
versions destroy the Unicode environment, which is used by the shell
functions to determine the location of the APPDATA directory).
See also: http://blogs.msdn.com/oldnewthing/archive/2003/11/03/55532.aspx