8000 Android: stdout is set to `errors="surrogateescape"` · Issue #125942 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Android: stdout is set to errors="surrogateescape" #125942

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

Closed
mhsmith opened this issue Oct 24, 2024 · 0 comments · Fixed by #125943
Closed

Android: stdout is set to errors="surrogateescape" #125942

mhsmith opened this issue Oct 24, 2024 · 0 comments · Fixed by #125943
Labels
OS-android type-bug An unexpected behavior, bug, or error

Comments

@mhsmith
Copy link
Member
mhsmith commented Oct 24, 2024

Bug report

Bug description:

The Android stdout and stderr tests include an assertion that both streams are set to errors="backslashreplace", which is the most useful setting for redirecting the streams to the Android log. However, this test only passed because the CPython test harness reconfigures stdout – outside of the tests, it's set to surrogateescape.

CPython versions tested on:

3.13

Operating systems tested on:

No response

Linked PRs

@mhsmith mhsmith added type-bug An unexpected behavior, bug, or error OS-android labels Oct 24, 2024
freakboy3742 pushed a commit that referenced this issue Oct 25, 2024
Android stdout/err streams now use `backslashreplace` encoding to ensure readability of the Android log.
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Oct 25, 2024
…ythonGH-125943)

Android stdout/err streams now use `backslashreplace` encoding to ensure readability of the Android log.
(cherry picked from commit b08570c)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
freakboy3742 pushed a commit that referenced this issue Oct 25, 2024
…H-125943) (#125950)

gh-125942: Android: set stdout to `errors="backslashreplace"` (GH-125943)

Android stdout/err streams now use `backslashreplace` encoding to ensure readability of the Android log.
(cherry picked from commit b08570c)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
ebonnal pushed a commit to ebonnal/cpython that referenced this issue Jan 12, 2025
…ython#125943)

Android stdout/err streams now use `backslashreplace` encoding to ensure readability of the Android log.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-android type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0