[New-bugs-announce] [issue8761] PyUnicode_CompareWithASCIIString name is not mangled (UCS2, UCS4)

STINNER Victor report at bugs.python.org
Wed May 19 01:50:22 CEST 2010


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

In unicodeobject.h, you can see:

# define PyUnicode_CompareWithASCII PyUnicodeUCS2_CompareASCII
...
# define PyUnicode_CompareWithASCII PyUnicodeUCS4_CompareWithASCII
...
PyAPI_FUNC(int) PyUnicode_CompareWithASCIIString(
    PyObject *left,
    const char *right
    );

The defines miss the String suffix :-/

Attached patch adds the suffix but I guess that it breaks backward compatibility. Is it a problem to apply this patch in Python 3.2 (but not in Python 3.1)?

----------
components: Unicode
files: pyunicode_compareascii.patch
keywords: patch
messages: 106015
nosy: haypo
priority: normal
severity: normal
status: open
title: PyUnicode_CompareWithASCIIString name is not mangled (UCS2, UCS4)
versions: Python 3.2
Added file: http://bugs.python.org/file17391/pyunicode_compareascii.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8761>
_______________________________________


More information about the New-bugs-announce mailing list