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

Fix mismatching strings entry length #495

Merged
merged 1 commit into from
Dec 26, 2023
Merged

Conversation

Elscrux
Copy link
Member

@Elscrux Elscrux commented Dec 8, 2023

Fix mismatching length for encodings where the byte count and string length are different.

I tested this for the Dragonborn book DLC2Book2CommonRavenRock01. Using non-latin languages like Japanese or Russian had their book text cut off roughly in the middle because it was using the string length, not the byte length of the encoding that is used.

@Elscrux Elscrux requested a review from Noggog December 8, 2023 16:33
@Noggog Noggog merged commit 77e6889 into Mutagen-Modding:dev Dec 26, 2023
3 checks passed
@Noggog
Copy link
Member

Noggog commented Dec 26, 2023

Thanks! Would be nice to have unit tests to back the change, but no worries if you don't have the time. Happy holidays!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants