-
Notifications
You must be signed in to change notification settings - Fork 696
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
getShortPathName returns invalid response in Cygwin #3649
Comments
CC @23Skidoo who wrote this code. Since cygpath computes short path correctly, we can look at its source code to see how to do it properly http://cygwin-ports.sourceforge.net/scan-build/utils/report-MWMmDX.html From GetShortPath docs:
So I guess the problem is that the sample path above shortens to something longer, violating the assumption our code makes (which allocates a buffer based on the length of the input path + 1). |
Found the way to fix it from here
|
#3487 seems related too. |
Thanks, I think it is indeed this bug! |
I would close this but if we do a point release for 1.24.0.1 we should put this patch in. |
Already cherry-picked into 1.24, so closing. |
I installed Haskell Platform 8.0.1 into
C:\HPlat
, so gcc is at "c:\HPlat\8.0.1\mingw\bin\gcc.exe"The text was updated successfully, but these errors were encountered: