New Windows Unicode solution, works on XP #335
No reviewers
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!335
Loading…
Reference in a new issue
No description provided.
Delete branch "unicode-xp"
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?
Now uses
WriteConsoleWinstead ofvfwprintf. This is codepage independent and works on Windows XP.Doing this also avoids the
_O_U8TEXThack.Also use
_vsnprintfinstead ofvsnprintf, as it is more consistent thanvsnprintfin that it doesn't write the null terminator on truncation. Weird.Some minor cleanup was done as well.
Truly fixes #293.
Err… I’m a mere user without compiler. Could I have a binary to verify the fix, please?
xxhsum-windows-7328e217.zip
Oh, so many binaries, it makes me confused all the time. Right, I confirm that
xxhsum-i686-mingw-w64.exeandxxhsum-i686-mingw32.exefinally work as expected,and report that
xxhsum-i686-msvc2019.execannot be launched (XP says “not Win32 app”).I might have used the wrong filename, or MSVC builds just don't work with XP. I'll test in my VM later.
Edit: Forgot that MSVC sets the minimum version to NT 6.0 a.k.a. Vista. You need to add
/link /SUBSYSTEM:CONSOLE,5.1to support XP.