Reading gnumeric files in Windows doesn't work
This is the upstream report of LibreOffice bug 94834.
In Windows, LibreOffice fails to open the attached test file even after the first fix from 08.26.
There are two reasons for that:
-
It fails to find the file with name "Комп для Паши.gnumeric".
This is where it throws an exception:
stream.cpp#L73
I assume the issue is the lack of Unicode filename-handling. (which seems to be different in Windows than in Linux? since in Linux the file opens just fine) -
If file is renamed to ASCII characters, it proceeds further, but the string returned by the previous function is 11 bytes long, and the file still fails to load.
Changing stream.cpp#L67 as follows fixes this issue:std::ifstream file(filepath, std::ios::binary);