Writing SPDX output to a file raises an exception #436
|
@sschuberth I think that the SPDX tools should be unicode all the way. And for now in ScanCode you could work around this by forcing the doc to be unicode in:
|
|
Use something like this for now:
|
Interestingly, with that I was getting
This apparently is because
see PR #441. However, I'm wondering why the code was working for you then. Any idea about that? |
|
@sschuberth I had made only a quick test ... and I may not have pasted exactly what I tested :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is basically a note to myself since I've introduced the bug. Running something like
results in
@pombredanne As I'm still a Python beginner, do you think this can be fixed without modifying the spdx-tools package to write unicode instead of str?