aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-12-27 20:10:36 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2010-12-27 20:10:36 +0000
commitcb428f01625f99937b59431a53cc8f6013bd3cc2 (patch)
treee8667e28d2233034831ec06aaaf65cb3a014c7d2 /Include/warnings.h
parent#7056: runtest and runtest_inner don't use testdir, so drop it from their sigs (diff)
downloadcpython-cb428f01625f99937b59431a53cc8f6013bd3cc2.tar.gz
cpython-cb428f01625f99937b59431a53cc8f6013bd3cc2.tar.bz2
cpython-cb428f01625f99937b59431a53cc8f6013bd3cc2.zip
Issue #10779: PyErr_WarnExplicit() decodes the filename from the filesystem
encoding instead of UTF-8.
Diffstat (limited to 'Include/warnings.h')
-rw-r--r--Include/warnings.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/warnings.h b/Include/warnings.h
index 7553a25db63..b7db681cc41 100644
--- a/Include/warnings.h
+++ b/Include/warnings.h
@@ -20,7 +20,7 @@ PyAPI_FUNC(int) PyErr_WarnFormat(
PyAPI_FUNC(int) PyErr_WarnExplicit(
PyObject *category,
const char *message, /* UTF-8 encoded string */
- const char *filename, /* UTF-8 encoded string */
+ const char *filename, /* decoded from the filesystem encoding */
int lineno,
const char *module, /* UTF-8 encoded string */
PyObject *registry);