From 9dea1559314966e30d9fdbd1ffe52a275f3e360e Mon Sep 17 00:00:00 2001 From: Shuhei Iitsuka Date: Wed, 4 Apr 2018 09:22:01 +0900 Subject: [PATCH] Specify encoding in reading README.rst from setup.py. Change-Id: I678adce052fc3eacef3b4f6198c4e1722b24e9f0 --- mozc-nazoru/setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozc-nazoru/setup.py b/mozc-nazoru/setup.py index 60ac4fb..aed5e6f 100755 --- a/mozc-nazoru/setup.py +++ b/mozc-nazoru/setup.py @@ -15,11 +15,13 @@ # See the License for the specific language governing permissions and # limitations under the License. +import codecs import os from setuptools import setup, find_packages def read_file(name): - with open(os.path.join(os.path.dirname(__file__), name), 'r') as f: + with codecs.open( + os.path.join(os.path.dirname(__file__), name), 'r', 'utf-8') as f: return f.read().strip() setup(