From cb428f01625f99937b59431a53cc8f6013bd3cc2 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 27 Dec 2010 20:10:36 +0000 Subject: Issue #10779: PyErr_WarnExplicit() decodes the filename from the filesystem encoding instead of UTF-8. --- Include/warnings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Include/warnings.h') 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); -- cgit v1.2.1