Movatterモバイル変換


[0]ホーム

URL:


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

Simplify UTF8 StrPtr usage#2374

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
filmor merged 4 commits intomasterfromsimplify-utf8-strptr
Jun 8, 2024
Merged

Simplify UTF8 StrPtr usage#2374

filmor merged 4 commits intomasterfromsimplify-utf8-strptr
Jun 8, 2024

Conversation

filmor
Copy link
Member

@filmorfilmor commentedMay 6, 2024
edited
Loading

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

The documentation of the used `PyUnicode_DecodeUTF16` states that notpassing `*byteorder` or passing a 0 results in the first two bytes, ifthey are the BOM (U+FEFF, zero-width no-break space), to be interpretedand skipped, which is incorrect when we convert a known "non BOM"string, which all strings from C# are.
@filmorfilmor marked this pull request as draftMay 6, 2024 11:52
@filmorfilmor marked this pull request as ready for reviewJune 8, 2024 06:33
@filmorfilmor merged commitf82aeea intomasterJun 8, 2024
29 checks passed
@filmorfilmor deleted the simplify-utf8-strptr branchJune 8, 2024 23:32
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@lostmsulostmsulostmsu approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@filmor@lostmsu

[8]ページ先頭

©2009-2025 Movatter.jp