[#858] readLine can return negative values