Library
-------
+- Bug #924361: Properly support normalization of empty unicode strings.
+
- Fixed a caching bug in platform.platform() where the argument of 'terse' was
not taken into consideration when caching value.
&form, &PyUnicode_Type, &input))
return NULL;
+ if (PyUnicode_GetSize(input) == 0) {
+ /* Special case empty input strings, since resizing
+ them later would cause internal errors. */
+ Py_INCREF(input);
+ return input;
+ }
+
if (strcmp(form, "NFC") == 0)
return nfc_nfkc(input, 0);
if (strcmp(form, "NFKC") == 0)