You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
waf/waf-1.7.0pre3-encoding.patch

14 lines
379 B

diff --git a/wscript b/wscript
index 24aec92..189b26b 100644
--- a/wscript
+++ b/wscript
@@ -141,7 +141,7 @@ def process_tokens(tokens):
line_buf = []
for (type, token, start, end, line) in tokens:
- token = token.replace('\r\n', '\n')
+ token = token.decode('utf-8').replace('\r\n', '\n')
if type == tokenize.NEWLINE:
if line_buf:
accu.append(indent * '\t')