[issue44487] Regression

Erik Faye-Lund report at bugs.python.org
Tue Jun 22 06:24:16 EDT 2021


New submission from Erik Faye-Lund <kusmabite at gmail.com>:

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 <report at bugs.python.org>
<https://bugs.python.org/issue44487>
_______________________________________


More information about the Python-bugs-list mailing list