fix source comments for non-ASCII characters
authorStefan Behnel <scoder@users.berlios.de>
Sun, 18 Oct 2009 15:58:18 +0000 (17:58 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 18 Oct 2009 15:58:18 +0000 (17:58 +0200)
Cython/Compiler/Code.py

index 23f5cf60c03db9992a011f55e84841cbf64fe831..45b880f90646378f4ac2b018f0c98c5485d80737 100644 (file)
@@ -749,7 +749,7 @@ class GlobalState(object):
                     u'/*', u'/[inserted by cython to avoid comment start]*'
                     )
                  for line in source_desc.get_lines(encoding='ASCII',
-                                                   error_handling='replace')]
+                                                   error_handling='ignore')]
             if len(F) == 0: F.append(u'')
             self.input_file_contents[source_desc] = F
             return F