- Notifications
You must be signed in to change notification settings - Fork748
Detect the size of wchar_t (aka Runtime.UCS) at runtime using PyUnicode_GetMax#1298
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecov-io commentedNov 30, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## master #1298 +/- ##==========================================- Coverage 87.97% 87.88% -0.09%========================================== Files 1 1 Lines 291 289 -2 ==========================================- Hits 256 254 -2 Misses 35 35
Flags with carried forward coverage won't be shown.Click here to find out more.
Continue to review full report at Codecov.
|
markuspalme commentedNov 30, 2020
This could possibly solve#114. |
Great, I wasn't aware of |
sekkit commentedOct 10, 2021
ctypes.sizeof(ctypes.c_wchar) would do the trick |
@lostmsu It looks like the symbol is scheduled for removal for Python 3.10, I'll look into this s.t. we can start supporting 3.10 earlier than we could with 3.9 :) |
What does this implement/fix? Explain your changes.
This determines the value for
Runtime.UCS
at runtime instead of using compile-time defines, removing the need for separate builds ofPython.Runtime
.Does this close any currently open issues?
N/A
Any other comments?
PyUnicode_GetMax
is deprecated, but preserved for compatibility.Checklist
Check all those that are applicable and complete.
AUTHORS
CHANGELOG