[PATCH] Handle printing correctly on non-mswindows.