Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.5] bpo-30708: Add private C API function _PyUnicode_AsWideCharString(). (GH-2285) (GH-2443)#2448

Merged
serhiy-storchaka merged 1 commit intopython:3.5python/cpython:3.5from
serhiy-storchaka:backport-0edffa3-3.5serhiy-storchaka/cpython:backport-0edffa3-3.5Copy head branch name to clipboard
Jun 27, 2017
Merged

[3.5] bpo-30708: Add private C API function _PyUnicode_AsWideCharString(). (GH-2285) (GH-2443)#2448
serhiy-storchaka merged 1 commit intopython:3.5python/cpython:3.5from
serhiy-storchaka:backport-0edffa3-3.5serhiy-storchaka/cpython:backport-0edffa3-3.5Copy head branch name to clipboard

Conversation

@serhiy-storchaka
Copy link
Member

And use it instead of PyUnicode_AsWideCharString() if appropriate.

_PyUnicode_AsWideCharString(unicode) is like PyUnicode_AsWideCharString(unicode, NULL), but
raises a ValueError if the wchar_t* string contains null characters.
(cherry picked from commit e613e6a).
(cherry picked from commit 0edffa3)

…harString(). (pythonGH-2285) (pythonGH-2443)

Raise a ValueError if the second argument is NULL and the wchar_t\*
string contains null characters..
(cherry picked from commit e613e6a).
(cherry picked from commit 0edffa3)
@serhiy-storchaka serhiy-storchaka added the type-bug An unexpected behavior, bug, or error label Jun 27, 2017
@serhiy-storchaka serhiy-storchaka changed the title [3.6] bpo-30708: Add private C API function _PyUnicode_AsWideCharString(). (GH-2285) (GH-2443) [3.5] bpo-30708: Add private C API function _PyUnicode_AsWideCharString(). (GH-2285) (GH-2443) Jun 27, 2017
@serhiy-storchaka serhiy-storchaka merged commit 94b169f into python:3.5 Jun 27, 2017
@serhiy-storchaka serhiy-storchaka deleted the backport-0edffa3-3.5 branch August 9, 2017 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.