In recently experimental version, if I create a world with Chinese characators, it will be failed
I cant paste pic here, so I type the error msg manualy:
将 “世界数据” 写入 "./save/(unrecognizable code)/worldoptions.json"失败: open failed
It seems write the world options json to a unrecognizable code failed! and I open the save folder in explorer, find it creates a new folder, but the name is a unrecognizable code: ���˹��
this is OK in latest stable version, this folder is the Chinese chatactor what I type. And a few days(may be 08/22?) it also supported in experimental build. But now it does not work. What happened?
Ezsk
August 30, 2021, 10:49am
2
Perhaps this file system change is the cause of the error.
CleverRaven:master
← akrieger:ghc_filesystem
opened 04:26AM - 09 Aug 21 UTC
<!-- HOW TO USE: Under each "#### Heading" below, enter information relevant to … your pull request.
Leave the headings unless they don't apply to your PR.
Please read carefully and don't delete the comments delimited by "< !--" and "-- >"
Once a pull request is submitted automatic stylistic and consistency checks will be performed on the PR's changes.
The results of these can be either seen under the "Files changed" section of a PR or in the check's details.
NOTE: Please grant permission for repository maintainers to edit your PR. It is EXTREMELY common for PRs to be held up due to trivial changes being requested and the author being unavailable to make them. -->
#### Summary
None
<!-- This section should consist of exactly one line, edit the one above.
Category must be one of these: Features, Content, Interface, Mods, Balance, Bugfixes, Performance, Infrastructure, Build, I18N. Or replace the whole line with just the word None for no changelog entry.
For more on the meaning of each category, see:
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/CHANGELOG_GUIDELINES.md
If approved and merged, your summary will be added to the project changelog:
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/data/changelog.txt -->
#### Purpose of change
<!-- With a few sentences, describe your reasons for making this change. If it relates to an existing issue, you can link it with a # followed by the GitHub issue number, like #1234. If your pull request *fully* resolves an issue, include the word "Fix" or "Fixes" before the issue number, like: Fixes #1234.
If there is no related issue, explain here what issue, feature, or other concern you are addressing. If this is a bugfix, include steps to reproduce the original bug, so your fix can be verified. -->
Add ghc filesystem, a c++17 compliant std::filesystem polyfill, and convert handwritten filesystem helpers to use it. This helps with writing more portable code and adds a functional `path` class too.
#### Testing
Create a new game, load a game, save and reload the game.
#### Additional context
Prerequisite for #50143.
The problem also occurs with saving character templates, which is reported in the Git issue.
It seems we will have to wait for a fix.
I fix it in my computer by enable unicode utf-8 support in region setting. And some old GBK program also works well.