mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Issue #10779: PyErr_WarnExplicit() decodes the filename from the filesystem
encoding instead of UTF-8.
This commit is contained in:
parent
8e286c472b
commit
cb428f0162
4 changed files with 8 additions and 4 deletions
|
@ -297,8 +297,9 @@ in various ways. There is a separate error indicator for each thread.
|
|||
is a straightforward wrapper around the Python function
|
||||
:func:`warnings.warn_explicit`, see there for more information. The *module*
|
||||
and *registry* arguments may be set to *NULL* to get the default effect
|
||||
described there. *message*, *filename* and *module* are UTF-8 encoded
|
||||
strings.
|
||||
described there. *message* and *module* are UTF-8 encoded strings,
|
||||
*filename* is decoded from the filesystem encoding
|
||||
(:func:`sys.getfilesystemencoding`).
|
||||
|
||||
|
||||
.. c:function:: int PyErr_WarnFormat(PyObject *category, Py_ssize_t stack_level, const char *format, ...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue