Skip to content

Conversation

@obfusk
Copy link
Contributor

@obfusk obfusk commented Feb 1, 2021

p4a's print() is handled by androidembed.log(), which uses PyArg_ParseTuple(args, "s", &logstr) to convert its arguments to a char* for __android_log_write; its documentation states "The Python string must not contain embedded null code points; if it does, a ValueError exception is raised.".

Fixes #2415.

@tito tito merged commit 484e046 into kivy:develop Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Python for android ended." When printing \x00

2 participants