Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imbue scent map (de)serialization stream with the C locale #44659

Merged
merged 1 commit into from
Oct 7, 2020

Conversation

Qrox
Copy link
Contributor

@Qrox Qrox commented Oct 6, 2020

Summary

SUMMARY: Bugfixes "Fix scent map saved with invalid utf8 sequence"

Purpose of change

Fixes #44608.

Describe the solution

Imbue scent map (de)serialization stream with the C locale to avoid writing the thousands separator.

Testing

Tested with two saves and scent values were correctly loaded. My machine doesn't use a locale with thousands separator though, so I cannot test that.

Additional context

This does not fix already broken saves. Since "grscent" is only saved in a single place (the .sav file), people with a broken save can just edit the file to remove the thousands separator.

@marningmol
Copy link
Contributor

Can confirm that this fixes the issue on my system.

@I-am-Erk I-am-Erk added [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) labels Oct 7, 2020
@ZhilkinSerg ZhilkinSerg merged commit 5a0f553 into CleverRaven:master Oct 7, 2020
@Qrox Qrox deleted the imbue branch October 8, 2020 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bad save json error when loading newly started game.
4 participants