[issue12112] The new packaging module should not use the locale encoding

2013-01-02 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12112 ___

[issue12112] The new packaging module should not use the locale encoding

2011-07-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I can run LANG=C python -m test test_packaging successfully. Can we close this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12112 ___

[issue12112] The new packaging module should not use the locale encoding

2011-05-19 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: The locale encoding is not portable, packaging should use UTF-8 instead. Attached patch is a draft to workaround LANG=C ./python -m test test_packaging failures. I'm not sure that my test in Metadata.write_file() of

[issue12112] The new packaging module should not use the locale encoding

2011-05-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- components: +Library (Lib) nosy: +eric.araujo, tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12112 ___

[issue12112] The new packaging module should not use the locale encoding

2011-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also issue #9561 (distutils: set encoding to utf-8 for input and output files) and #6011 (python doesn't build if prefix contains non-ascii characters). If you are curious, read also #8611 (Python3 doesn't support locale

[issue12112] The new packaging module should not use the locale encoding

2011-05-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Looks good, please commit this -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12112 ___ ___

[issue12112] The new packaging module should not use the locale encoding

2011-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I ported a distutils fix (for non-ASCII path) into packaging: New changeset cc5cfeaa4a8d by Victor Stinner in branch 'default': Issue #10419, issue #6011: port 6ad356525381 fix from distutils to packaging

[issue12112] The new packaging module should not use the locale encoding

2011-05-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: +if not isinstance(fileobject, StringIO): +encoding = codecs.lookup(fileobject.encoding).name IMO you should try to get the encoding attribute and silence the AttributeError instead. (also, I'm not even sure why you're

[issue12112] The new packaging module should not use the locale encoding

2011-05-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12112 ___

[issue12112] The new packaging module should not use the locale encoding

2011-05-19 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset fe740c1cee02 by Victor Stinner in branch 'default': Issue #12112: packaging reads and writes setup.cfg using UTF-8 http://hg.python.org/cpython/rev/fe740c1cee02 New changeset 01d61096140a by Victor Stinner in branch 'default': Issue

[issue12112] The new packaging module should not use the locale encoding

2011-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: What is the MainProgram.inspect_file() function in packaging.create? Which kind of file should it process? = What is the encoding of the input files? -- ___ Python tracker

[issue12112] The new packaging module should not use the locale encoding

2011-05-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: That's not used anymore, I am going to strip it -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12112 ___

[issue12112] The new packaging module should not use the locale encoding

2011-05-19 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset a636cb1b7f84 by Victor Stinner in branch 'default': Issue #12112: fix the encoding of setup.py in the packaging module http://hg.python.org/cpython/rev/a636cb1b7f84 -- ___ Python tracker