New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In some UCS4 builds, sizeof(Py_UNICODE) could end up being more than 4. #47380
Comments
This issue is a branch from bpo-3098. Below a summary of the discussion: Antoine Pitrou wrote:
Marc-Andre Lemburg wrote:
Antoine Pitrou wrote:
Marc-Andre Lemburg wrote:
http://www.gnu.org/software/autoconf/manual/html_node/Particular-Types.html#Particular-Types
|
I like the idea of using uint16_t and uint32_t. Unicode 5.1 contains |
AC_TYPE_INT32_T should already be there. See also the code in It was recently pointed out that there are some issues with these |
@mark Dickinson you've shown some interest, could you run with this? |
This issue has no patch. |
The PEP-393 has been accepted: strings are now stored as PyUCS1*, PyUCS2* or PyUCS4*. The Py_UNICODE type still exist but is deprecated, and only used in the legacy API. Py_UNICODE is now always the wchar_t type, it cannot be unsigned int anymore. I hope that no platform chose to use wchar_t larger than 32 bits. Let' close this issue. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: