From: | "Marien Zwart (marienz)" <marienz@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/doit/files: doit-0.16.1-setup.py-encoding.patch |
Date: | Wed, 29 Aug 2012 10:22:52 |
Message-Id: | 20120829102238.5AF2020B24@flycatcher.gentoo.org |
1 | marienz 12/08/29 10:22:38 |
2 | |
3 | Added: doit-0.16.1-setup.py-encoding.patch |
4 | Log: |
5 | Make setup.py work in a non-utf8 locale (bug #430034, thanks to Flameeyes for reporting). |
6 | |
7 | (Portage version: 2.2.0_alpha123/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-python/doit/files/doit-0.16.1-setup.py-encoding.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/doit/files/doit-0.16.1-setup.py-encoding.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/doit/files/doit-0.16.1-setup.py-encoding.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: doit-0.16.1-setup.py-encoding.patch |
16 | =================================================================== |
17 | diff -r c996cf6da98a setup.py |
18 | --- a/setup.py Thu Jul 05 09:00:09 2012 +0800 |
19 | +++ b/setup.py Wed Aug 29 12:10:37 2012 +0200 |
20 | @@ -84,7 +84,8 @@ |
21 | scripts = scripts, |
22 | cmdclass = {'test': PyTest}, |
23 | install_requires = install_requires, |
24 | - long_description = open('doc/index.rst').read().split('Quick Start')[0], |
25 | + long_description = open('doc/index.rst', 'rb' |
26 | + ).read().decode('utf-8').split('Quick Start')[0], |
27 | **extra |
28 | ) |