Closed i0xHeX closed 6 years ago
Does this happen only on Windows? Also, could you post the file you were trying to disassemble?
I didn't tried on other platforms, but google searching results seems that unix platforms do not have similar issues. Link to file: https://www.dropbox.com/s/8l4ucu1st615ygn/hb.class?dl=0 Other class, disassembled without problems: https://www.dropbox.com/s/0lalgk5byr9l6gy/gl.class?dl=0
Default encoding is utf8:
>>> import sys
>>> sys.getdefaultencoding()
'utf-8'
This fixed my issue: https://hastebin.com/enohupijas.pas
Thanks for investigating this. I'll hopefully get to it over the weekend.
Could you repost the file please? The link isn't working for me.
No, I mean the classfile that caused the error.
https://www.dropbox.com/s/f3lrmwgrjhqoli3/hb%26gl.zip?dl=0 hb.class | with error gl.class | in same situation ok
How are things?
Sorry, I'll try to get to it over the weekend.
I tried disassembling the file you provided on my old Windows machine, but it disassembled without errors.
Edit: I did get an error with Python 3 on Windows disassembling hb.class, but it is different from the one you posted.
Ok, I went ahead and pushed a fix for the issue I noticed. I can't reproduce the original error, so I'll close this for now, but if you find a way to reliably reproduce it, feel free to reply.
Python 3.7.0a2 Krakatau latest zip from here. Tried to disassemble zkm 9: https://hastebin.com/numaluhemu.sql
It's seems problem with default Windows encoding. I googled. but found nothing useful how to fix this. Also tried to change
151
linescript_util.py
towith open(out, mode, encoding='utf-8')
. Disassembling good but Assembling failing with and withoutencoding='utf-8'
.