It behaves differently under wine/Windows and the Windows version throws away parts of the input instead of failing.