Skip to content
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

Exception when path contains unicode character #17

Open
ftiff opened this issue Mar 14, 2017 · 1 comment
Open

Exception when path contains unicode character #17

ftiff opened this issue Mar 14, 2017 · 1 comment

Comments

@ftiff
Copy link

ftiff commented Mar 14, 2017

Hi Tim,
Thanks for your work, it's an awesome tool!

When the path contains a unicode character ("François") in my case, the script refuses to write the file:

[fti@Gramont Desktop]$ cd François\ CP/
[fti@Gramont François CP]$ ./mcx2profile.py --plist com.apple.security.firewall.plist --identifier com.apple.security.firewallTraceback (most recent call last):
  File "./mcx2profile.py", line 539, in <module>
    main()
  File "./mcx2profile.py", line 534, in main
    newPayload.finalizeAndSave(output_file)
  File "./mcx2profile.py", line 138, in finalizeAndSave
    writePlist(self.data, output_path)
  File "./mcx2profile.py", line 256, in writePlist
    "Failed to write plist data to %s" % filepath)
__main__.NSPropertyListWriteException: Failed to write plist data to /Users/fti/Desktop/François CP/com.apple.security.firewall.mobileconfig
[fti@Gramont François CP]$
@alifkifi
Copy link

alifkifi commented Apr 9, 2020

ali

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants