-
Notifications
You must be signed in to change notification settings - Fork 560
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
readlink returns malformed path on Windows 11, perl 5.37.5 #20460
Comments
Do you know whether the problem you observe with
|
It's possible the second commit in #20271 fixes this. Unfortunately I couldn't find any documentation on which if the two names to use when I added Win32 readlink support, and didn't encounter the strange names you're seeing (or that I saw while re-working stat()) when I was working on readlink support. |
@jkeenan I tried with another perl 5.37.4 built with Visual C++ 2022 and nmake. I get exactly the same output here. So the problem is not specific to gcc or gmake. |
#20271 is now merged into blead, please try giving blead a try, or wait for the next dev release. And yes, it has nothing to do with the compiler, we implement readlink() via Win32 system calls. |
Fixed in blead. |
I have built a debug version of perl 5.37.5 on Windows 11 using MinGW-w64 and gcc 11.3.0 from https://winlibs.com/ (using the MSVCRT runtime library), see #20395 for more information. When trying to install
Path::Tiny
using this perl I got some test failures, see dagolden/Path-Tiny#258 for more information. I reduced the problem down to this script:The output is:
Notice the leading
\??\
. Expected output would be:Perl configuration
The text was updated successfully, but these errors were encountered: