setup.cfg shall be parsed as explicitly utf-8 encoded
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PBR |
Fix Released
|
Medium
|
Stephen Finucane |
Bug Description
Currently the `setup.cfg` is open using default console encoding what is definitely not deterministic and is likely to cause Windows/Linux incompatibilities.
On line http://
`parser.read(path)`
what shall be changed to:
`parser.read(path, encoding="utf-8")`
This assumes that the `setup.cfg` is UTF-8 encoded what sounds like good assumption (but would be nice to have it documented).
Note, that there is related issue in python distutils https:/
Changed in pbr: | |
assignee: | Ben Nemec (bnemec) → Stephen Finucane (stephenfinucane) |
Unfortunately parser.read() doesn't take an encoding kwarg on Python 2, which is something we still need to support. We should be able to add some logic to handle that though.