[Bug 1878] scanf with %i doesn't work