Skip to content
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.

fix the error when build under Chinese OS with default GBK encode #183

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

perillaseed
Copy link

Because the "README.rst" is using "utf-8" encoded, and Chinese OS default encode is GBK, When build under Chinese Windows OS, it will report:
Traceback (most recent call last):
File "setup.py", line 81, in
long_description=readme(),
File "setup.py", line 65, in readme
return f.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x99 in position 878: illegal multibyte sequence

Because the "README.rst" is using "utf-8" encoded, and Chinese OS default encode is GBK, When build under Chinese  Windows OS, it will report:
Traceback (most recent call last):
  File "setup.py", line 81, in <module>
    long_description=readme(),
  File "setup.py", line 65, in readme
    return f.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x99 in position 878: illegal multibyte sequence
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant