pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/ValvePython/vdf/pull/57

d26552848.css" /> Treat UTF-16 strings in binary VDF as little-endian by smcv · Pull Request #57 · ValvePython/vdf · GitHub
Skip to content

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

Open
smcv wants to merge 1 commit intoValvePython:masterfrom
smcv:utf16le
Open

Treat UTF-16 strings in binary VDF as little-endian#57
smcv wants to merge 1 commit intoValvePython:masterfrom
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

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>
@smcv
Copy link
Contributor Author

smcv commented Dec 15, 2023

I still need to test this on a big-endian machine, I'll mark as non-draft after that.

@smcv
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
@smcv
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BinaryVDF.test_loads_utf16 not passed

1 participant

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy