Maybe this code needs some comments about that, since the behavior isn't that obvious... This will avoid more this-does-not-work-on-windows comments.