summaryrefslogtreecommitdiff
path: root/Include/warnings.h
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
parent8e286c472b4b9c81ef2a3501ac984afe560e29a5 (diff)
downloadcpython-git-cb428f01625f99937b59431a53cc8f6013bd3cc2.tar.gz
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 7553a25db6..b7db681cc4 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);