- Notifications
You must be signed in to change notification settings - Fork749
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 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
dnfadmin commentedJun 8, 2021 • 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.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
@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 forPyBytes_AsString
that takesBorrowedReference
. This would remove unnecessary call toDangerousGetAddress
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. |
Uh oh!
There was an error while loading.Please reload this page.
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