[issue10945] bdist_wininst depends on MBCS codec, unavailable on non-Windows

Éric Araujo report at bugs.python.org
Fri Oct 14 17:53:42 CEST 2011


Éric Araujo <merwok at netwok.org> added the comment:

>> It is not code under the users’ control (i.e. setup.py)
>> that uses MBCS, but the bdist_wininst command itself.
> bdist_command append configuration data to a wininst-xxx.exe binary.
Are you sure?  The string that’s encoded with mbcs comes from the get_inidata method in bdist_wininst.py; get_inidata only works with strings (either string literals or str objects (in 3.x) given as attributes of the command object or in the DistributionMetadata object).

> Where does this file come from? Can we modify wininst-xxx.exe binaries?
If needed, we can: the code lives in PC/bdist_wininst.

> Use the ASCII encoding is the safest solution
I don’t think so.  Distutils supports author='Éric', so bdist_wininst should too :)

----------
nosy: +loewis
priority: normal -> high

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


More information about the Python-bugs-list mailing list