summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-10-09 10:12:11 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-10-09 10:12:11 (GMT)
commit257d38ffdd5e85c17e14d63e1930e4756864878f (patch)
tree5ea1ceab49198640d7fbf13317f84354945a7b5a /Include
parentfc8408cbe85dfc549686036668ceed77f2d8e76f (diff)
downloadcpython-257d38ffdd5e85c17e14d63e1930e4756864878f.zip
cpython-257d38ffdd5e85c17e14d63e1930e4756864878f.tar.gz
cpython-257d38ffdd5e85c17e14d63e1930e4756864878f.tar.bz2
Issue #9738: Document PyErr_SetString() and PyErr_SetFromErrnoWithFilename()
encodings
Diffstat (limited to 'Include')
-rw-r--r--Include/pyerrors.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index fb9ce91..58a3df7 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -60,7 +60,10 @@ typedef struct {
PyAPI_FUNC(void) PyErr_SetNone(PyObject *);
PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *);
-PyAPI_FUNC(void) PyErr_SetString(PyObject *, const char *);
+PyAPI_FUNC(void) PyErr_SetString(
+ PyObject *exception,
+ const char *string /* decoded from utf-8 */
+ );
PyAPI_FUNC(PyObject *) PyErr_Occurred(void);
PyAPI_FUNC(void) PyErr_Clear(void);
PyAPI_FUNC(void) PyErr_Fetch(PyObject **, PyObject **, PyObject **);
@@ -177,7 +180,9 @@ PyAPI_FUNC(PyObject *) PyErr_SetFromErrno(PyObject *);
PyAPI_FUNC(PyObject *) PyErr_SetFromErrnoWithFilenameObject(
PyObject *, PyObject *);
PyAPI_FUNC(PyObject *) PyErr_SetFromErrnoWithFilename(
- PyObject *, const char *);
+ PyObject *exc,
+ const char *filename /* decoded from the filesystem encoding */
+ );
#ifdef MS_WINDOWS
PyAPI_FUNC(PyObject *) PyErr_SetFromErrnoWithUnicodeFilename(
PyObject *, const Py_UNICODE *);