You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pass short path names to configure scripts on Windows #3185
In #2946 we changed Cabal to use the standard mechanism when passing the gcc path to configure scripts. Unfortunately, it looks like this feature is still broken (at least on Windows) when the path contains spaces (a bug in Autoconf). A workaround that is confirmed to work is to use short path names. We should change Cabal to do that automatically.
8.3 short names can be disabled for performance reasons
The documentation for GetShortPathName says:
If you call GetShortPathName on a path that doesn't have any short names on-disk, the call will succeed, but will return the long-name path instead. This outcome is also possible with NTFS volumes because there's no guarantee that a short name will exist for a given long name.
So it looks like using GetShortPathName will be no worse than status quo when 8.3 names are disabled.
Activity
gbaz commentedon Feb 24, 2016
Of the mechanisms to get short path names in windows, this looks fairly reliable for programmatic use: http://stackoverflow.com/a/21786312/371753
23Skidoo commentedon Feb 24, 2016
Is
GetShortPathNameunreliable?gbaz commentedon Feb 24, 2016
Calling the function directly should work fine too. I just tend to prefer to shell out rather than deal with more bindings...
Mistuke commentedon Apr 4, 2016
8.3 short names can be disabled for performance reasons https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#short_vs._long_names
So I don't particularly like this as the default. Isn't there another possible fix?
23Skidoo commentedon Apr 4, 2016
@Mistuke
The documentation for
GetShortPathNamesays:So it looks like using
GetShortPathNamewill be no worse than status quo when 8.3 names are disabled.Pass short path names to configure scripts on Windows.
Pass short path names to configure scripts on Windows.
Pass short path names to configure scripts on Windows.
Pass short path names to configure scripts on Windows.
Pass short path names to configure scripts on Windows.
Pass short path names to configure scripts on Windows.