[New-bugs-announce] [issue39432] Distutils generates the wrong export symbol for unicode module names

da-woods report at bugs.python.org
Thu Jan 23 08:48:15 EST 2020


New submission from da-woods <dw-git at d-woods.co.uk>:

Distuitls generates "export symbols" for extension modules to help ensure that they have have the correct linkage on Windows.

https://github.com/python/cpython/blob/0d30ae1a03102de07758650af9243fd31211325a/Lib/distutils/command/build_ext.py#L692

It generates the correct symbol in most causes, but if the filename contains unicode characters then it creates the wrong symbol, causing linkage errors.

The behaviour should be updated to reflect PEP-489: https://www.python.org/dev/peps/pep-0489/#export-hook-name

----------
components: Distutils
messages: 360555
nosy: da-woods, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: Distutils generates the wrong export symbol for unicode module names
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39432>
_______________________________________


More information about the New-bugs-announce mailing list