New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BN's Python plugin breaks in interesting ways if Windows user directory contains non-ASCII characters #4510
Comments
Related to: #4460 |
I don't suppose there's a way I can relocate my BN user directory until this is fixed? If not, all that's left are not-very-appealing options for working around this... 🤔 |
You can set the environment variable BN_USER_DIRECTORY to an alternative path that is writable, which may mitigate this. |
Thanks, that mostly works. Update settings seem to break, though:
(This happens when changing to the dev channel.) |
That's not surprising, considering the update cache uses a different directory than the normal user directory. I'm not sure there's an easy solution to that right now, but it should only impact the auto updater. |
That just looks like you have selected the stable channel instead of dev. Ahh, just reread the previous comments. We'll need to change the update mechanism to resolve the bug or at least have it follow the environment variable. In the meantime, https://binary.ninja/recover/ is your best bet for updates to the latest dev. |
Hmm, is there a changelog for the dev channel anywhere? I can't see that in BN's welcome page either, so I actually have no indication of when there's a new dev build. |
The changes are available in the welcome page if you're on the development build. Or you can access it via the API directly: https://github.com/Vector35/binaryninja-api/blob/dev/python/examples/version_switcher.py |
Related to #4460 |
@alexrp I pushed the fix to dev 3.5.4420 which should be available in a few hours. Please give it a try and see it it works! |
@xusheng6 just updated and moved my BN user directory back under |
Version and Platform (required):
Bug Description:
I just reinstalled Windows after some hardware upgrades. For whatever reason, Windows decided to make my user directory
C:\Users\Alex Rønne Petersen
instead ofC:\Users\alex
this time around (I suspect because I made the account locally before connecting it to a Microsoft account). Thatø
, encoded as UTF-16 (0xf8
), seems to be wreaking all kinds of havoc on BN's Python plugin, which tries to decode it as UTF-8.During startup:
Trying to install a plugin:
Steps To Reproduce:
Expected Behavior:
Things should work.
The text was updated successfully, but these errors were encountered: