Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Treat UTF-16 strings in binary VDF as little-endian #57

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

Open
smcv wants to merge 1 commit into ValvePython:master
base: master
Choose a base branch
Loading
from smcv:utf16le

Conversation

@smcv
Copy link
Contributor

@smcv smcv commented Dec 15, 2023

Integers in binary VDF are already treated as little-endian (least significant byte first) regardless of CPU architecture, but the 16-bit units in UTF-16 didn't get the same treatment. This led to a test failure on big-endian machines.

Resolves: #33

sertonix reacted with thumbs up emoji
Integers in binary VDF are already treated as little-endian (least
significant byte first) regardless of CPU architecture, but the 16-bit
units in UTF-16 didn't get the same treatment. This led to a test failure
on big-endian machines.
Resolves: ValvePython#33
Signed-off-by: Simon McVittie <smcv@debian.org>
Copy link
Contributor Author

smcv commented Dec 15, 2023
edited
Loading

(削除) I still need to test this on a big-endian machine, I'll mark as non-draft after that. (削除ここまで)

Copy link
Contributor Author

smcv commented Dec 15, 2023

The CI failures are expected, see #56 for fixes for those.

@smcv smcv marked this pull request as ready for review December 15, 2023 13:11
Copy link
Contributor Author

smcv commented Dec 15, 2023

Verified to pass tests on a Debian-developer-accessible s390x (big-endian) machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

BinaryVDF.test_loads_utf16 not passed

1 participant

AltStyle によって変換されたページ (->オリジナル) /