[issue32223] distutils doesn't correctly read UTF-8 content from config files

2021-02-03 Thread Steve Dower
Steve Dower added the comment: Distutils is now deprecated (see PEP 632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils. If this issue does not relate to distutils, please remove the component and reopen it. If

[issue32223] distutils doesn't correctly read UTF-8 content from config files

2019-05-06 Thread Éric Araujo
Éric Araujo added the comment: No, setup.py and setup.cfg are invented by distutils and extended by setuptools. -- ___ Python tracker ___

[issue32223] distutils doesn't correctly read UTF-8 content from config files

2019-05-06 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi, I have closed the PR because there is no feedback from deliverance and the CLA must be signed for the processing. Once the CLA will be signed, the PR could be re-opened. Thank you so much, -- nosy: +matrixise versions: -Python 3.6

[issue32223] distutils doesn't correctly read UTF-8 content from config files

2019-04-30 Thread Eduardo Suarez-Santana
Eduardo Suarez-Santana added the comment: In my opinion, 'setup.cfg' is setuptools stuff and not part of python project. Anyway I think it is a good idea to read it as UTF-8. Setuptools seems to be defaulting to UTF-8: https://github.com/pypa/setuptools/pull/1735 -- nosy:

[issue32223] distutils doesn't correctly read UTF-8 content from config files

2019-03-18 Thread Éric Araujo
Éric Araujo added the comment: Repeat: `metadata` in setup.cfg is not supported directly by distutils. Can you provide a setup.py script that shows the problem without setuptools? -- ___ Python tracker

[issue32223] distutils doesn't correctly read UTF-8 content from config files

2018-01-25 Thread Jan Vlcinsky
Jan Vlcinsky added the comment: The fix shall go to https://github.com/python/cpython/blob/2812d3d99287c50bab99625d7240bcf1c2e32369/Lib/distutils/dist.py#L406 where `parser.read(filename)` shall be changed to `parser.read(filename, encoding="utf-8")` This

[issue32223] distutils doesn't correctly read UTF-8 content from config files

2017-12-08 Thread Éric Araujo
Éric Araujo added the comment: `metadata` in setup.cfg is not supported directly by distutils. Can you provide a setup.py script that shows the problem without setuptools? -- ___ Python tracker

[issue32223] distutils doesn't correctly read UTF-8 content from config files

2017-12-05 Thread Dan
Change by Dan : Added file: https://bugs.python.org/file47319/setup.cfg ___ Python tracker ___

[issue32223] distutils doesn't correctly read UTF-8 content from config files

2017-12-05 Thread Dan
Dan added the comment: I've attached the files. Run using 'python setup.py sdist'. The resulting PKG-INFO will contain incorrect data: Summary: délivrance Author: Dan Tès The expected output is: Summary: délivrance Author: Dan Tès --

[issue32223] distutils doesn't correctly read UTF-8 content from config files

2017-12-05 Thread Dan
Change by Dan : Added file: https://bugs.python.org/file47320/setup.py ___ Python tracker ___

[issue32223] distutils doesn't correctly read UTF-8 content from config files

2017-12-05 Thread Éric Araujo
Change by Éric Araujo : -- versions: -Python 3.4, Python 3.5, Python 3.8 ___ Python tracker ___

[issue32223] distutils doesn't correctly read UTF-8 content from config files

2017-12-05 Thread Éric Araujo
Éric Araujo added the comment: Can you give an example setup.cfg file, setup.py command and the full error message? -- ___ Python tracker

[issue32223] distutils doesn't correctly read UTF-8 content from config files

2017-12-05 Thread Dan
New submission from Dan : On Windows, distutils doesn't correctly read UTF-8 content from config files (setup.cfg). Seems like the issue is located on the line reading the files via the ConfigParser; simply adding 'encoding="UTF-8"' as argument fixes the problem for me: