summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/unicodeobject.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 9c02817..68278e6 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -1185,6 +1185,10 @@ static int
unicode_resizable(PyObject *unicode)
{
Py_ssize_t len;
+#if SIZEOF_WCHAR_T == 2
+ /* FIXME: unicode_resize() is buggy on Windows */
+ return 0;
+#endif
if (Py_REFCNT(unicode) != 1)
return 0;
if (PyUnicode_CHECK_INTERNED(unicode))