summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-12-28 00:28:21 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2010-12-28 00:28:21 +0000
commit92be939695a43f039f3ef0d0d5fe55dc67607f70 (patch)
treecf750b1451b8a13650946ec62569ba95a985c64a /Include/pyerrors.h
parentIssue #10778: decoding_fgets() decodes the filename from the filesystem (diff)
downloadcpython-92be939695a43f039f3ef0d0d5fe55dc67607f70.tar.gz
cpython-92be939695a43f039f3ef0d0d5fe55dc67607f70.tar.bz2
cpython-92be939695a43f039f3ef0d0d5fe55dc67607f70.zip
Issue #10780: PyErr_SetFromWindowsErrWithFilename() and
PyErr_SetExcFromWindowsErrWithFilename() decode the filename from the filesystem encoding instead of UTF-8.
Diffstat (limited to 'Include/pyerrors.h')
-rw-r--r--Include/pyerrors.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index 05c5ea8034d..0f8bcf745fe 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -202,7 +202,7 @@ PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErrWithFilenameObject(
int, const char *);
PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErrWithFilename(
int ierr,
- const char *filename /* decoded from UTF-8 */
+ const char *filename, /* decoded from the filesystem encoding */
);
#ifndef Py_LIMITED_API
/* XXX redeclare to use WSTRING */
@@ -215,7 +215,7 @@ PyAPI_FUNC(PyObject *) PyErr_SetExcFromWindowsErrWithFilenameObject(
PyAPI_FUNC(PyObject *) PyErr_SetExcFromWindowsErrWithFilename(
PyObject *exc,
int ierr,
- const char *filename /* decoded from UTF-8 */
+ const char *filename, /* decoded from the filesystem encoding */
);
#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject *) PyErr_SetExcFromWindowsErrWithUnicodeFilename(