Py3.1 fix
authorStefan Behnel <scoder@users.berlios.de>
Thu, 20 Aug 2009 20:41:37 +0000 (22:41 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 20 Aug 2009 20:41:37 +0000 (22:41 +0200)
Cython/Compiler/Parsing.py

index 885b8518d00eeca4bbe2ae59d128025c74bb12c3..f4083995223171eab31d364a1eab3c48e30594ba 100644 (file)
@@ -1950,6 +1950,8 @@ def p_opt_cname(s):
     literal = p_opt_string_literal(s)
     if literal:
         _, cname = literal
+        cname = EncodedString(cname)
+        cname.encoding = s.source_encoding
     else:
         cname = None
     return cname