utf-8 decode failure when using create-run
Issue #2544
resolved
Lorenzo Ennoggi just encountered an issue with simfactory where it fails with an utf-8 decoding error due to an invalid utf-8 character in Cactus' output stream in simfactory/lib/simrestart.py line 1016:
out_txt = out_read.read()
then can probably be avoided by ensuring that we read and write "byte" objects (and use binary file IO) rather than "strings".
Comments (7)
-
-
Please review.
-
- changed status to open
-
-
assigned issue to
-
assigned issue to
-
-
Applied as git hash 7553af2 "simrestart: when piping data to log files, read and write raw bytes" of simfactory2
-
- changed status to resolved
- Log in to comment
Pull request is here: https://bitbucket.org/simfactory/simfactory2/pull-requests/59/rhaas-bytestreams
Tested with this invalid byte stream from stackoverflow:
in a RunScript file.