Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PyUnicode_AsUnicode function signature mismatch on UCS2/UCS4 #408

Closed
@vmuriart

Description

@vmuriart

Signatures of the functions are different.

UCS2:
internal unsafe static extern char* PyUnicode_AsUnicode(IntPtr ob);

UCS4:
internal unsafe static extern IntPtr PyUnicode_AsUnicode(IntPtr ob);

Leading to weird hacks in the code such as 1 and 2

Consolidate signature to IntPtr and remove PyUnicode_AS_UNICODE which does the same thing.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions