From 447d33ead62b6dcd46d475a703f59940eb85428b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 29 Jul 2007 18:10:01 +0000 Subject: Implement PEP 3120. --- Python/ast.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Python/ast.c') diff --git a/Python/ast.c b/Python/ast.c index 146cd0539c..5426c02cbe 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -203,7 +203,8 @@ PyAST_FromNode(const node *n, PyCompilerFlags *flags, const char *filename, c.c_encoding = STR(n); n = CHILD(n, 0); } else { - c.c_encoding = NULL; + /* PEP 3120 */ + c.c_encoding = "utf-8"; } c.c_arena = arena; -- cgit v1.2.1