cpython: b9f7b1bf36aa (original) (raw)

Mercurial > cpython

changeset 82502:b9f7b1bf36aa

Issue #17223: Fix PyUnicode_FromUnicode() on Windows (16-bit wchar_t type) to reject invalid UTF-16 surrogate. [#17223]

Victor Stinner victor.stinner@gmail.com
date Wed, 06 Mar 2013 00:41:50 +0100
parents 15190138d3f3
children 583a0321c7b9
files Misc/NEWS Objects/unicodeobject.c
diffstat 2 files changed, 15 insertions(+), 7 deletions(-)[+] [-] Misc/NEWS 3 Objects/unicodeobject.c 19

line wrap: on

line diff

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,6 +10,9 @@ What's New in Python 3.4.0 Alpha 1? Core and Builtins ----------------- +- Issue #17223: Fix PyUnicode_FromUnicode() on Windows (16-bit wchar_t type)

--- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1384,13 +1384,18 @@ find_maxchar_surrogates(const wchar_t *b for (iter = begin; iter < end; ) { #if SIZEOF_WCHAR_T == 2

#endif