#6373: SystemError in str.encode('latin1', 'surrogateescape')
if the string contains unpaired surrogates.
(In debug build, crash in assert())
This can happen with normal processing, if python starts with utf-8,
then calls sys.setfilesystemencoding('latin-1')
diff --git a/Misc/NEWS b/Misc/NEWS
index 2381844..98539e5 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,10 @@
Core and Builtins
-----------------
+- Issue #6373: Fixed a RuntimeError when encoding with the latin-1 codec and
+ the 'surrogateescape' error handler, a string which contains unpaired
+ surrogates.
+
- Issue #4856: Remove checks for win NT.
Library