New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win32 - file test operators don't work for //?/UNC/server/file filenames #9025
Comments
From adavies@ptc.comCreated by adavies@ptc.comOn win32 you can use UNC pathanmes of the form: \\?\UNC\server\folder\filename Perl can C<open> these files ok, but C<-f>, C<-e> etc. The code in question is in win32/win32.c's win32_stat(): # %< #if defined(WIN64) || defined(USE_LARGE_FILES) if (res < 0) { # >% Note that GetFileAttributesA() does succeed for "\\?\UNC\server\file" Is there any reason why this isn't coded as (untested): DWORD r = GetFileAttributesA(path); Perl Info
|
From @jkeenanOn Mon Sep 10 09:41:21 2007, adavies@ptc.com wrote:
Can anyone on Win32 confirm whether these problems persist in a Thank you very much. |
The RT System itself - Status changed from 'new' to 'open' |
From @tonycozOn Mon, Aug 13, 2012 at 04:10:26PM -0700, James E Keenan via RT wrote:
This is still a problem in blead. C:\Users\tony\dev\perl\git\perl>perl -le "print qq($_: ), join ',', -d $_, -f $_ Tony |
As discussed on the mailing list here: https://www.nntp.perl.org/group/perl.perl5.porters/2020/10/msg258453.html This just removes the declaration that we support the very old versions of Windows that have long since been EOLed. For reference of problems related to maintaining the EOLed versions: Perl#4145 Perl#6080 Perl#7410 Perl#8502 Perl#9025 Perl#12431 Perl#14687
Fixed in blead, by e935ef3:
I suspect a build with a recent MSVC would also fix it, since the UCRT uses CreateFile() to open file for stat() rather than FindFirstFile() as older MSVC and the msvcrt do. |
Migrated from rt.perl.org#45331 (status was 'open')
Searchable as RT45331$
The text was updated successfully, but these errors were encountered: