From 9ca9c25bcd9d4b771be6fee34a105546d1c8d666 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 19 May 2010 16:53:30 +0000 Subject: 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. --- Include/sysmodule.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Include/sysmodule.h') diff --git a/Include/sysmodule.h b/Include/sysmodule.h index 5078fe0d06..3a3bf3e466 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 -- cgit v1.2.1