← Winnitude! Search  ·  Reader Mode (1908 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 36 LINKS

Simplify UTF8 StrPtr usage by filmor · Pull Request #2374 · pythonnet/pythonnet

Repository navigation

Simplify UTF8 StrPtr usage - #2374


Merged
filmor merged 4 commits into master from simplify-utf8-strptr Jun 8, 2024
Merged

Simplify UTF8 StrPtr usage #2374 filmor merged 4 commits into master from simplify-utf8-strptr

Conversation

filmor commented May 6, 2024 · edited Loading



Copy link Copy Markdown
Member

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

filmor added 3 commits May 5, 2024 20:42 Use non-BOM encodings 4c46c6d Copy potential BOM to the output of PyString_FromString dc6f5ef
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.
Default to UTF8 for StrPtr 12eda97 filmor marked this pull request as draft May 6, 2024 11:52 Merge branch 'master' into simplify-utf8-strptr a9e835c filmor marked this pull request as ready for review June 8, 2024 06:33 lostmsu approved these changes Jun 8, 2024
View reviewed changes
filmor merged commit f82aeea into master Jun 8, 2024 filmor deleted the simplify-utf8-strptr branch June 8, 2024 23:32 dependabot
Bot
mentioned this pull request Jan 16, 2026 Bump pythonnet from 3.0.3 to 3.0.5 mattemangia/Deep3DStudio#99 Closed Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

2 participants