Backport from trunk r52223:
Bug #1572832: fix a bug in ISO-2022 codecs which may cause segfault
when encoding non-BMP unicode characters. (Submitted by Ray Chason)
diff --git a/Misc/NEWS b/Misc/NEWS
index a390730c..daa0add 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -49,6 +49,9 @@
Extension Modules
-----------------
+- Bug #1572832: fix a bug in ISO-2022 codecs which may cause segfault
+ when encoding non-BMP unicode characters.
+
- Bug #1556784: allow format strings longer than 127 characters in
datetime's strftime function.