xxhsum.exe Long MAX_PATH support over 260 characters in the path #1060
Labels
No labels
announcement
bug
build
CI
dependencies
documentation
duplicate
enhancement
experience feedback
feature request
github_actions
help wanted
install
invalid
Long-term
optimization
portability
question
target-specific
test issue
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-Cyan4973/xxHash#1060
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I was having an issue with xxhsum not reading files over 260 characters in Windows despite LongPathsEnabled in the registry being enabled.
Using the Microsoft documentation here and here and then using resource hacker to change the application manifest inside the .exe, I was able to get this working perfectly.
I poked around the source but I don't know enough about how to change the manifest file it compiles with to be able to propose a patch, but if someone can work this out, here is my Before and After.
Before:
After my changes:
Hi @29039 , thanks for the report and your investigation.
I put additional information here for further integration in future.
Reproduction procedure
Possible patch for
XSUM_fopen() (wchar_t)NOTE :
XSUM_statalso needs to support long path.