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!).
V
Victor Stinner committed
f6c578328c419f25dea91425479a6ceeb891b04d
Parent: 306f010