Issue #6697: Check that _PyUnicode_AsString() result is not NULL in textio.c
The bug may occurs if locale.getpreferredencoding() returns an encoding with a surrogate (very unlikely!).
Showing
Please register or sign in to comment
The bug may occurs if locale.getpreferredencoding() returns an encoding with a surrogate (very unlikely!).