Platform independent encoding on setup.py
envgap__omnilib__aioitertools-15
01 / FAILURE SIGNATURE
As reported upstream
No identifying execution failure has been captured.
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
c21f9fc307855883961570ee346cb76fc16b351a- Manifest
setup.py- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
omnilib/aioitertools #15 · read the original issue
### Description
Python `open()` use by default `locale.getpreferredencoding()` which leads to the problem of installing the package in an uncontrolled environment (build agent for example)
See: [stackoverflow](https://stackoverflow.com/questions/36303919/python-3-0-open-default-encoding) and [open](https://docs.python.org/3.7/library/functions.html#open)
Instead of using default encoding, should set the UTF-8 in `setup.py`
```python
with open(file, encoding='utf8') as f:
...
```
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]