Index: fix_encoding.py |
diff --git a/fix_encoding.py b/fix_encoding.py |
index 61bd742b495043b97a653a4fd6fda40eca087a52..5da9135818d4c3cb71d09c7dd02441340205aaf1 100644 |
--- a/fix_encoding.py |
+++ b/fix_encoding.py |
@@ -229,7 +229,7 @@ class WinUnicodeConsoleOutput(WinUnicodeOutputBase): |
remaining -= n.value |
if not remaining: |
break |
- text = text[n.value:] |
+ text = text[int(n.value):] |
except Exception, e: |
complain('%s.write: %r' % (self.name, e)) |
raise |