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

Simplify UTF8 StrPtr usage #2374

Merged
merged 4 commits into from
Jun 8, 2024
Merged

Simplify UTF8 StrPtr usage #2374

merged 4 commits into from
Jun 8, 2024

Conversation

filmor
Copy link
Member

@filmor filmor commented May 6, 2024

Default to UTF8 for StrPtr, as that is used in all but one case.

filmor added 3 commits May 5, 2024 20:42
The documentation of the used `PyUnicode_DecodeUTF16` states that not
passing `*byteorder` or passing a 0 results in the first two bytes, if
they are the BOM (U+FEFF, zero-width no-break space), to be interpreted
and skipped, which is incorrect when we convert a known "non BOM"
string, which all strings from C# are.
@filmor filmor marked this pull request as draft May 6, 2024 11:52
@filmor filmor marked this pull request as ready for review June 8, 2024 06:33
@filmor filmor merged commit f82aeea into master Jun 8, 2024
29 checks passed
@filmor filmor deleted the simplify-utf8-strptr branch June 8, 2024 23:32
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.

None yet

2 participants