Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass utf-8 encoding when opening the README #23

Merged
merged 1 commit into from
Jun 3, 2018

Conversation

bamarni
Copy link
Contributor

@bamarni bamarni commented Jun 1, 2018

This was causing an error on my setup where LC_ALL wasn't set to UTF-8.

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/pz/w736zydx5pxdjbn0l0h_28_80000gr/T/pip-install-9c1pe10m/click-spinner/setup.py", line 6, in <module>
        readme = f.read()
      File "/Users/user/.pyenv/versions/3.5.5/Python.framework/Versions/3.5/lib/python3.5/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 373: ordinal not in range(128)

Even though this usually happens on wrongly configured environments I think it makes sense to enforce it.

This was causing an error on my setup where LC_ALL wasn't set to UTF-8.

```
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/pz/w736zydx5pxdjbn0l0h_28_80000gr/T/pip-install-9c1pe10m/click-spinner/setup.py", line 6, in <module>
        readme = f.read()
      File "/Users/user/.pyenv/versions/3.5.5/Python.framework/Versions/3.5/lib/python3.5/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 373: ordinal not in range(128)
```

Even though this usually happens on wrongly configured environments I think it makes sense to enforce it.
@yoavram yoavram merged commit d8a9b02 into click-contrib:master Jun 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants