pulkit added a comment.
In https://phab.mercurial-scm.org/D3218#51610, @yuja wrote: > `print(nonascii)` may fail depending on the locale. > We have to use `getattr(sys.stdout, 'buffer', sys.stdout)` or `pycompat.stdout`. I get the following failure: --- /home/foobar/repo/hg-committed/tests/test-mq-qpush-fail.t +++ /home/foobar/repo/hg-committed/tests/test-mq-qpush-fail.t.err @@ -60,7 +60,7 @@ cleaning up working directory... reverting foo done - abort: decoding near '\xe9': 'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)! (esc) + abort: decoding near '\xe9From: tes': 'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)! (esc)  $ hg parents changeset: 0:bbd179dfa0a7 I see that you advised same on https://phab.mercurial-scm.org/D2334 and I got the above failure that time too and was unable to followup. Any ideas on this failure? I tried `stdout.flush()` too. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3218 To: pulkit, #hg-reviewers, yuja Cc: yuja, mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurialemail@example.com https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel