[issue44487] Regression
New submission from Erik Faye-Lund : This commit lead to a regression when using Meson on Windows to build the Mesa project: https://github.com/python/cpython/commit/4827483f47906fecee6b5d9097df2a69a293a85c The reason is that pathlib.read_text now uses the locale as the encoding when reading files when there's no encoding explicitly passed in. That means that C++ source files are attempted read as CP1252 on Windows, which throws exceptions when source files contain UTF-8 code-points. -- components: Library (Lib) messages: 396318 nosy: kusma priority: normal severity: normal status: open title: Regression versions: Python 3.10, Python 3.11 ___ Python tracker <https://bugs.python.org/issue44487> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44487] Regression in pathlib.path.read_text
Change by Erik Faye-Lund : -- title: Regression -> Regression in pathlib.path.read_text ___ Python tracker <https://bugs.python.org/issue44487> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44487] Regression in pathlib.path.read_text
Erik Faye-Lund added the comment: After digging some more, I no longer suspect that this commit is to blame, but instead some logic in Meson that effectively disabled the problematic code under in our use-case before we upgraded our Visual Studio version. The reason is that I was able to reproduce this using Python 3.9, and as far as I can tell that doesn't contain this change. So, sorry for the noise. I'll close this, and rather reopen if I find out I'm wrong. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue44487> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com