From: Stefan Behnel Date: Fri, 21 Aug 2009 11:12:27 +0000 (+0200) Subject: decode included filenames as we can't handle byte encoded filenames in Py3 X-Git-Tag: 0.12.alpha0~232 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=35608b78aee400dba96b9e00560ad00cac8d0858;p=cython.git decode included filenames as we can't handle byte encoded filenames in Py3 --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index f4083995..7245c6d2 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -1430,6 +1430,7 @@ def p_include_statement(s, ctx): _, include_file_name = p_string_literal(s) s.expect_newline("Syntax error in include statement") if s.compile_time_eval: + include_file_name = include_file_name.decode(s.source_encoding) include_file_path = s.context.find_include_file(include_file_name, pos) if include_file_path: s.included_files.append(include_file_name)