#1477: ur'\U0010FFFF' used to raise in narrow unicode builds.
Corrected the raw-unicode-escape codec to use UTF-16 surrogates in
this case, like the unicode-escape codec does.
Backport of r61793 and r61853
diff --git a/Misc/NEWS b/Misc/NEWS
index a97fa52..3e95a44 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -11,6 +11,13 @@
Core and builtins
-----------------
+
+- Issue #1477: With narrow Unicode builds, the unicode escape sequence
+ \Uxxxxxxxx did not accept values outside the Basic Multilingual Plane. This
+ affected raw unicode literals and the 'raw-unicode-escape' codec. Now
+ UTF-16 surrogates are generated in this case, like normal unicode literals
+ and the 'unicode-escape' codec.
+
- Issue #2321: use pymalloc for unicode object string data to reduce
memory usage in some circumstances.