Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12112
___
É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
___
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
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
___
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
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
___
___
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
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
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12112
___
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
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
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
___
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
13 matches
Mail list logo