File fix-encoding.diff of Package python-pocketsphinx-python
Index: pocketsphinx-0.1.3/setup.py
===================================================================
--- pocketsphinx-0.1.3.orig/setup.py
+++ pocketsphinx-0.1.3/setup.py
@@ -182,11 +182,17 @@ if sys.platform.startswith('win'):
cmdclass['bdist_wininst'] = bdist_wininst
+
+if sys.version_info[0] == 2:
+ long_description = open('README.rst').read()
+else:
+ long_description = open('README.rst', encoding='utf-8').read()
+
setup(
name='pocketsphinx',
version='0.1.3',
description='Python interface to CMU Sphinxbase and Pocketsphinx libraries',
- long_description=open('README.rst').read(),
+ long_description=long_description,
author='Dmitry Prazdnichnov',
author_email='dp@bambucha.org',
maintainer='Dmitry Prazdnichnov',