mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #8589: Decode PYTHONWARNINGS environment variable with the file system
encoding and surrogateespace error handler instead of the locale encoding to be consistent with os.environ. Add PySys_AddWarnOptionUnicode() function.
This commit is contained in:
parent
a5bf3f520c
commit
9ca9c25bcd
5 changed files with 27 additions and 12 deletions
|
|
@ -81,6 +81,10 @@ accessible to C code. They all work with the current interpreter thread's
|
|||
|
||||
Append *s* to :data:`sys.warnoptions`.
|
||||
|
||||
.. cfunction:: void PySys_AddWarnOptionUnicode(PyObject *unicode)
|
||||
|
||||
Append *unicode* to :data:`sys.warnoptions`.
|
||||
|
||||
.. cfunction:: void PySys_SetPath(wchar_t *path)
|
||||
|
||||
Set :data:`sys.path` to a list object of paths found in *path* which should
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue