[Distutils] unicode bug in distutils
Tarek Ziadé
ziade.tarek at gmail.com
Sat Feb 24 22:06:43 CET 2007
On 2/24/07, Paul Pogonyshev <pogonyshev at gmx.net> wrote:
>
> Tarek Ziadé wrote:
> > I have created a setup.py file for distirbution and I bumped into
> > a small bug when i tried to set my name in the contact field (Tarek
> Ziadé)
> >
> > Using string (utf8 file):
> >
> > setup(
> > maintainer="Tarek Ziadé"
> > )
>
> How about maintainer = u"Tarek Ziadé"?
see second part of my message:
Using unicode:
setup(
maintainer=u"Tarek Ziadé"
)
leads to:
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 1094, in write_pkg_file
file.write('Author: %s\n' % self.get_contact() )
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position
18: ordinal not in range(128)
Tarek
Paul
>
--
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/distutils-sig/attachments/20070224/e04b4665/attachment.htm
More information about the Distutils-SIG
mailing list