frida / frida-gum

Cross-platform instrumentation and introspection library written in C
https://frida.re
Other
727 stars 240 forks source link

fix source-charset to utf-8 #767

Closed Qfrost911 closed 8 months ago

Qfrost911 commented 8 months ago

I encountered an error when I use VisualStudio2022 to build frida-gadget : [frida-gadget] Failed to load script: malformed package

In the end, I found the error source-charset caused this problem. The VisualStudio complied project using the default charset for the environment. However, the result of compile must be utf-8 in order to be connected using frida-tools, which a script coding with python. So we must set charset attribute directly before using VS to build project

oleavr commented 8 months ago

Thanks! It would be good to move this here instead, so it applies to all projects. Would you mind opening a PR in the frida repo with that change?

Qfrost911 commented 8 months ago

Okey, I have created a PR : https://github.com/frida/frida/pull/2739