https://bugs.winehq.org/show_bug.cgi?id=57817
--- Comment #2 from Damjan Jovanovic damjan.jov@gmail.com --- (In reply to Piotr Caban from comment #1)
Is Wine compiled with Clang by any chance?
Yes, my i386/PE Wine is built with Clang 18.1.8.
I didn't look on disassembly yet but it looks like Clang miscompiles basic_istream_char_seekg_fpos function (there seems to be something wrong with fpos_mbstatet parameter handling).
A compiler bug? Wow.