locale.library: correctly return the position of remaining datastream