piranha/opster — pull request #20 by oscarbenjamin (2012-04-19 17:50:59+00:00)
Title: Tests running and passing on windows.

These three commits make the tests run and pass on Windows.

I'm not totally familiar with Makefile syntax but the changes are intended to have the effect that /bin/sh is used unless run like ```make test SHELL=C:\path\to\shell.exe```. The --shell parameter to cram is only available in the latest (unreleased) cram from mercurial at https://bitbucket.org/brodie/cram/

Flushing stderr was necessary on windows to get the same output order. It's probably a good idea on all systems.

Another encoding is added to the list of special-cased encodings (is there not a better way of doing that?). Note that although python doesn't raise a unicode error with the utf-8 encoding, the text displayed in the terminal is garbage.