fix unprefixed strings with non-UTF8 source code encoding in Py3
authorStefan Behnel <scoder@users.berlios.de>
Thu, 21 Apr 2011 17:25:21 +0000 (19:25 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 21 Apr 2011 17:25:21 +0000 (19:25 +0200)
Cython/Compiler/Code.py

index 51aa4256b5e145fd5c7a0db933a7080da97ffa2f..dcfad31396cce182fc4a87486d4fc93633a2b5b9 100644 (file)
@@ -762,8 +762,8 @@ class GlobalState(object):
                         py_string.cname,
                         py_string.py3str_cstring.cname,
                         py_string.py3str_cstring.cname,
                         py_string.cname,
                         py_string.py3str_cstring.cname,
                         py_string.py3str_cstring.cname,
-                        encoding,
-                        1, 1, 0,
+                        '0', 1, 0,
+                        py_string.intern
                         ))
                     w.putln("#else")
                 w.putln(
                         ))
                     w.putln("#else")
                 w.putln(