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

fix: specify encoding always when writing text to a file #2129

Merged
merged 3 commits into from
Jun 12, 2024

Conversation

antazoey
Copy link
Member

@antazoey antazoey commented Jun 11, 2024

What I did

  • fix alway specify encoding to prevent latin-1 issues as well as increase windows support
  • makes error look nicer when given wrong file type for config.write_to_disk()
  • specify encoding (more OS agnostic *hrm windows)

fixes: #2088

NOTE: The OZ specific issue was actually resolved via other means as both part of 0.8 and #2123 combined but the real problem is fixed by always specifying encoding if we can when calling write_text(), so will this PR it will finally close the issue.

How I did it

How to verify it

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

@antazoey antazoey changed the title chore: improve error for config.write_to_disk and specify encoding fix: specify encoding always when writing text to a file Jun 11, 2024
@antazoey antazoey merged commit 882526e into ApeWorX:main Jun 12, 2024
15 checks passed
@antazoey antazoey deleted the fix/improve-cfg-err branch June 12, 2024 01:07
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

Successfully merging this pull request may close these issues.

special character issues when dealing with openzepplin
2 participants