Fix Windows locale problem#13107
Closed
ken2812221 wants to merge 7 commits into
Closed
Conversation
laanwj
reviewed
Apr 28, 2018
Member
|
Thanks. Though I'm sad that this is needed.
BTW, there are |
Contributor
Author
|
prefer #13426 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #13103
This PR make internal strings of Windows always be utf8-encoded
Patched the boost library to convert
fs::path::string()to be UTF8 encoded. Add two functions that convert between UTF8 and Local encodes.To those who want to test this, adding
-datadir=(some non-ASCII characters)option make every file that Bitcoin Core use contain non-ASCII charactersDefect: If the user's codepage does not support the filename, it will be encoded to
?I don't known how to solve this. Leveldb and Berkeley DB don't support wide char.