Skip to content

Documentation about PyUnicode_AsWideChar() function #113437

Closed
@qqwqqw689

Description

@qqwqqw689

In file _winapi.c

We can see code:

size = PyUnicode_AsWideChar(key, NULL, 0);

Py_ssize_t PyUnicode_AsWideChar(PyObject *unicode, wchar_t *wstr, Py_ssize_t size)

But the doc say "Copies the Unicode Object contents into the wchar_t buffer w. At most size wchar_t characters are copied.".I think we miss the situation when size is 0.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions