Coder Social home page Coder Social logo

Comments (6)

izimobil avatar izimobil commented on July 17, 2024

Original comment by Kyrill Detinov (Bitbucket: Lazy_Kent, GitHub: Unknown):


I've tested compilation of polib-1.0.3 with Python2 and Python3 in all the openSUSE distributions. Everything works fine.

Thank you very much!

from polib.

izimobil avatar izimobil commented on July 17, 2024

Original comment by David Jean Louis (Bitbucket: izi, GitHub: izi):


yeah, the fix was wrong (see: https://bitbucket.org/izi/polib/commits/017e093add140640125985da54575400df530a75), please test with the fresh 1.0.3 and tell me if it works now, thanks.

from polib.

izimobil avatar izimobil commented on July 17, 2024

Original comment by David Jean Louis (Bitbucket: izi, GitHub: izi):


Fixed: https://bitbucket.org/izi/polib/commits/94e7535042926e3652d2039e104a8843df27a5f2

from polib.

izimobil avatar izimobil commented on July 17, 2024

Original comment by David Jean Louis (Bitbucket: izi, GitHub: izi):


Didn't test yet, but maybe:

#!python
import codecs
codecs.open('README.rst', 'r', 'utf-8')

should do the trick for both python 2 and 3.
I'll look at this ASAP.

from polib.

izimobil avatar izimobil commented on July 17, 2024

Original comment by Jakub Wilk (Bitbucket: jwilk, GitHub: jwilk):


encoding='utf-8' does the trick for Python 3.X, but it breaks Python 2.X suport:
TypeError: 'encoding' is an invalid keyword argument for this function

from polib.

izimobil avatar izimobil commented on July 17, 2024

Original comment by Kyrill Detinov (Bitbucket: Lazy_Kent, GitHub: Unknown):


It works with the patch:

Index: polib-1.0.2/setup.py
===================================================================
--- polib-1.0.2.orig/setup.py
+++ polib-1.0.2/setup.py
@@ -24,7 +24,7 @@ long_desc = '''
 
 %s
 
-''' % (open('README.rst').read(), open('CHANGELOG').read())
+''' % (open('README.rst', encoding='utf-8').read(), open('CHANGELOG', encoding='utf-8').read())
 
 if __name__ == '__main__':
     setup(

from polib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.