fix an error if a stream encoding type is None #1180
With the encoding refactor an error was introduced where if the encoding type of the stream was None a TypeError exception was thrown saying
This rare case happens if the stdout stream is being emulated or intercepted in a build system such as Jenkins and unicode characters were being fed through the put() command. The resulting sys.system.out stream.encoding would be None.
This fix ensures that if the stream encoding is unknown if allows the message to just decode it the best it can.
I have a similar issue; not sure if it's the same yet though.
I am redirecting Fabric output to a stream so that it can be displayed in a web app.
Ah, the above
After removing that, now I get this error instead, which sounds like the one mentioned in this PR:
Will this go away if make sure that