-
Notifications
You must be signed in to change notification settings - Fork 747
Add a failing test for Unicode conversion #1467
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
Conversation
@filmor requested some minor tweaks |
char* codePoints = (char*)PyBytes_AsString(p.DangerousGetAddress()); | ||
var bytesPtr = p.DangerousGetAddress(); | ||
int bytesLength = (int)Runtime.PyBytes_Size(bytesPtr); | ||
char* codePoints = (char*)PyBytes_AsString(bytesPtr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: better add overload for PyBytes_AsString
that takes BorrowedReference
. This would remove unnecessary call to DangerousGetAddress
above.
@lostmsu Can you reproduce the segfault on Python 3.9? |
@filmor it did not fail on rerun. I think we can merge this in, and investigate if it will reappear. |
What does this implement/fix? Explain your changes.
A failing test for #1466
Does this close any currently open issues?
No, just analyzes failure case.
Any other comments?
See #1466
Checklist
Check all those that are applicable and complete.
AUTHORS
CHANGELOG