[tryton-debian] tarball compression
Raphael Hertzog
hertzog at debian.org
Tue Jan 28 07:33:13 UTC 2014
On Mon, 27 Jan 2014, Mathias Behrle wrote:
> > * debian/rules: can you explain me why "export LC_ALL=C.UTF-8" is needed
> > for pbuilder ?
>
> It is #725788.
I have just read this bug report and IMO you missed the proper fix.
Python 3.3 uses ASCII encoding by default when LC_ALL=C and you
have setup.py which is trying to open an UTF-8 file. So you should
fix the code to explicitely tell that you're dealing with UTF-8.
In Python3, that's a matter of using open(..., encoding='UTF-8')
but unfortunately that's not Python2 compatible. So you will have
to use an if clause (or find some other way to tell python to open
everything in UTF-8 by default).
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Discover the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/
More information about the tryton-debian
mailing list