Switch stdout/stderr to UTF-8 on Windows #323
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!323
Loading…
Reference in a new issue
No description provided.
Delete branch "unicode-fix-v2"
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?
Uses an adapted version of the fwprintf wrapper suggested by @t-mat,
and _setmode.
Also tries to work around classic MinGW not defining _O_U8TEXT.
Awaiting Windows 7 verification from @sergeevabc, in which it will close #293
@ -182,6 +182,56 @@ static FILE *XXH_fopen_wrapped(const char *filename, const wchar_t *mode)return f;Maybe not necessary preamble ...
Same comment on L168
@ -182,6 +182,56 @@ static FILE *XXH_fopen_wrapped(const char *filename, const wchar_t *mode)return f;Fixed
@easyaspi314, I’d gladly verify the binary if there is one.
Ah, I see @easyaspi314 linked the binary here. Yes, it works as expected.