Python3 str does not have .decode(), this will cause the idaapi.has_mbcs to always be False
Harding-Stardust opened this issue · 7 comments
Harding-Stardust commented
There are some .decode() that will fail on Python 3.
williballenthin commented
might be fixed by using a bytes literal, like: b"".decode("UTF-8").encode("mbcs")
(note leading "b").
Harding-Stardust commented
Unfortunately not. The first decode "".decode("UTF-8") will return a str and that will in turn fail on the .encode("mbcs")
williballenthin commented
Harding-Stardust commented
You are correct, I read it as 2 decodes in a row. My bad!
aundro commented
Good catch, thank you! (will handle this soon)
aundro commented
Indeed. Thank you for the heads-up.