Closed docfate111 closed 4 years ago
Oof, thanks for this! I'll take a look this week
May I have permission to git push please? The solution is just 1 line of code that I wrote above.
the line is 124 in init.py with open(path, "r")as f: to with open(path, "r", encoding='utf-8') as f: otherwise this breaks on Linux
@docfate111 Thanks for being patient on this! Things have been up in the air lately...
May I have permission to git push please?
PRs are definitely welcome! You can fork the repository, create a new branch in your forked repository, and then submit a new PR from your branch into this project.
After creating the issue, checkboxes will appear where
[] label
exist in the markdown. You can check/uncheck them to fill out the environment section.Checklist
Environment
Platform
Python Version
Describe the bug
A clear and concise description of what the bug is. The file isn't opened with the encoding='utf-8' flag so I end with this error when I run main.py https://github.com/mgree/smoosh-fuzz/blob/master/src/posix/main.py in ubuntu docker python3
To Reproduce
The issue is in the function load_grammar in class GramFuzzer: --->here: with open(path, "r", WE NEED: encoding='utf-8') as f: data = f.read() code = compile(data, path, "exec") Steps to reproduce
Expected Behavior
I expected the behavior to be the same as in Python3.7 on Mac- a grammar is generated and strings from that grammar. A clear and concise description of what you expected to happen.