This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: distutils.core.setup() with unicode arguments broken
Type: Stage:
Components: Distutils Versions: Python 2.4
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akitada, akuchling, doerwalter, tarek, theller
Priority: normal Keywords:

Created on 2004-11-30 19:53 by doerwalter, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg23397 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2004-11-30 19:53
When using unicode arguments for distutils.core.setup() 
running breaks with the following exception:

Traceback (most recent call last):
\Lib\distutils\command\", line 430, in 
  File "C:\Programme\Python24\Lib\distutils\", line 
1047, in write_pkg_info
    pkg_info.write('Author: %s\n' % self.get_contact() )
UnicodeEncodeError: 'ascii' codec can't encode 
character u'\xf6' in position 16: ordinal not in range(128)

Changing the system default encoding to iso-8859-1 
works around this problem.
msg23398 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2004-11-30 20:13
Logged In: YES 

I'm unusure about the allowed encoding in PKG-INFO, and I
cannot find anything in PEP 241. Andrew, since you are
listed as the author, can you comment?

bdist_wininst does accept unicode strings, and that may be
the reason that walter expects this to work for sdist also...
msg23399 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2004-12-09 18:59
Logged In: YES 

Encoding was never considered.  PEP 314 is an updated
version of PEP 241; it should specify an encoding (probably
UTF-8 is the most reasonable choice).

msg81116 - (view) Author: Akira Kitada (akitada) * Date: 2009-02-03 23:28
It seems this problem was fixed already.
Can we close this?
msg81638 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2009-02-11 11:46
It does indeed work with Python 2.6 (however not with 2.5). Closing.
Date User Action Args
2022-04-11 14:56:08adminsetgithub: 41253
2009-02-11 11:46:49doerwaltersetstatus: open -> closed
resolution: out of date
messages: + msg81638
2009-02-03 23:28:54akitadasetnosy: + akitada, tarek
messages: + msg81116
2004-11-30 19:53:21doerwaltercreate