diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-03 02:18:04 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-03 02:18:04 (GMT) |
commit | ca4f7a42986979ff938586aa6cca6c0aa208560e (patch) | |
tree | 3c5b9cb20648f3f1e0b0216d77a37c677f79ffe5 /Objects | |
parent | 126c559d0588629a3317b66b3061cb82c67ffb89 (diff) | |
download | cpython-ca4f7a42986979ff938586aa6cca6c0aa208560e.zip cpython-ca4f7a42986979ff938586aa6cca6c0aa208560e.tar.gz cpython-ca4f7a42986979ff938586aa6cca6c0aa208560e.tar.bz2 |
Disable unicode_resize() optimization on Windows (16-bit wchar_t)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 4 |
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)) |