fix UnicodeEncodeError when fabric.api.abort/warn/puts #1096

wants to merge 1 commit into


None yet

2 participants


When using fabric.api.abort/warn/puts with unicode, fabric raises UnicodeEncodeError.
Because sys.stderr.encoding/sys.stdout.encoding are "cp932" in japanese windows not "ascii", writing unicode to sys.stderr.encoding/sys.stdout.encoding raises UnicodeEncodeError.
This commits fix these problems.

toruuetani fix UnicodeEncodeError when fabric.api.abort/warn/puts
fix UnicodeEncodeError when fabric.api.warn

fix UnicodeEncodeError when fabric.api.puts
@bitprophet bitprophet added a commit that closed this pull request Aug 6, 2014
@bitprophet bitprophet Changelog, fixes #1096 1722af1
@bitprophet bitprophet closed this in 1722af1 Aug 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment