For some reason, in one particular cluster environment I use, not doing this causes errors because the files are opened in ascii mode. The environment should be completely UTF-8 so not sure why it's happening, but this modification fixes it and shouldn't cause issues even in environments where it's not strictly necessary.
This adds the file encoding to two
open
calls.For some reason, in one particular cluster environment I use, not doing this causes errors because the files are opened in
ascii
mode. The environment should be completely UTF-8 so not sure why it's happening, but this modification fixes it and shouldn't cause issues even in environments where it's not strictly necessary.