summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-05-19 16:53:30 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-05-19 16:53:30 (GMT)
commit9ca9c25bcd9d4b771be6fee34a105546d1c8d666 (patch)
tree1fcc4adff5bc504e451b760d87d30665668e14d7 /Include
parenta5bf3f520c6d899b133b0526a551c279639a7851 (diff)
downloadcpython-9ca9c25bcd9d4b771be6fee34a105546d1c8d666.zip
cpython-9ca9c25bcd9d4b771be6fee34a105546d1c8d666.tar.gz
cpython-9ca9c25bcd9d4b771be6fee34a105546d1c8d666.tar.bz2
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.
Diffstat (limited to 'Include')
-rw-r--r--Include/sysmodule.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/sysmodule.h b/Include/sysmodule.h
index 5078fe0..3a3bf3e 100644
--- a/Include/sysmodule.h
+++ b/Include/sysmodule.h
@@ -21,6 +21,7 @@ PyAPI_DATA(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
PyAPI_FUNC(void) PySys_AddWarnOption(const wchar_t *);
+PyAPI_FUNC(void) PySys_AddWarnOptionUnicode(PyObject *);
PyAPI_FUNC(int) PySys_HasWarnOptions(void);
#ifdef __cplusplus