Commit 3dbd8ed
committed
Read README.rst as UTF-8 regardless of external locale settings.
The sanitized environment used by Debian package build daemons forces
use of the barebones ‘POSIX’ locale. Some versions of Python 3 will
refuse to read an UTF-8 file as text when this locale is in use,
unless explicitly told to use UTF-8 anyway. Python 2 doesn’t support
the encoding= argument to open(), so to get setup.py to do the Right
Thing in a universal fashion, read the file as *binary* and then
explicitly decode it.1 parent c7f6e3e commit 3dbd8ed
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
24 | | - | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
0 commit comments