Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1656)

Unified Diff: Python/errors.c

Issue 1874048: Rewrite Python import machinery to use unicode
Patch Set: Created 13 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Python/errors.c
diff --git a/Python/errors.c b/Python/errors.c
index 4ae661a16f38f2426b27779be4e06e19c5f4cdac..aed7c8e4e0c88775f26d13934b97249c47a36b06 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -803,7 +803,7 @@ PyErr_SyntaxLocation(const char *filename, int lineno)
Py_DECREF(tmp);
}
if (filename != NULL) {
- tmp = PyUnicode_FromString(filename);
+ tmp = PyUnicode_DecodeFSDefault(filename);
if (tmp == NULL)
PyErr_Clear();
else {

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b