Advertisement
Guest User

karatesid bug?

a guest
Feb 20th, 2020
564
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. Unicode error?
  2.  
  3. bug when trying to compile with Fuukak.sid (by Spider Jerusalem) Note: this also happened on other sids
  4.  
  5. Traceback (most recent call last):
  6. File "karatesid.py", line 44, in <module>
  7. sid = Sid(list(bytearray(open(args.infile,'rb').read())))
  8. File "karatesid.py", line 30, in __init__
  9. self.author = bytearray(data[54:86]).decode("ASCII")
  10. UnicodeDecodeError: 'ascii' codec can't decode byte 0xf6 in position 5: ordinal not in range(128)
  11.  
  12.  
  13. commented out line 30:
  14. #self.author = bytearray(data[54:86]).decode("ASCII")
  15. added line 31 to:
  16. self.author = "wut"
  17.  
  18. Then it worked
  19.  
  20. Traceback (most recent call last):
  21. File "karatesid.py", line 44, in <module>
  22. sid = Sid(list(bytearray(open(args.infile,'rb').read())))
  23. File "karatesid.py", line 30, in __init__
  24. self.author = bytearray(data[54:86]).decode("ASCII")
  25. UnicodeDecodeError: 'ascii' codec can't decode byte 0xf6 in position 5: ordinal not in range(128)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement