Created attachment 64753 [details]
This is the file after opening.
Much like https://bugs.freedesktop.org/show_bug.cgi?id=46699 (this may be a regression of that bug... opening an empty (0 byte) file causes a master file to be silently written to the file location as soon as "CSV Filter" is invoked. Some formats (like PDF) give an error dialog (General Error), then exit more properly.
Touch (or Copy NUL: >filename.csv) to create an empty file
Steps to reproduce:
1. Touch (or Copy NUL: >filename.csv) to create an empty file
2. Double-click to open the file in LibreOffice
3. Select CSV filter
4. File on disk will likely be an empty master document.
Master Document is written to disk, even if the file is not saved.
**While normally I'd say this is heinously dangerous, If this only happens with empty files, it's only confusing.**
LibreOffice should _warn_ if you're opening an empty file and _ask_ if you want to create a new file with that filename/path.
The file length should probably be checked _before_ we get to that filter dialog. If the file does not exist, or does exist, but has no length (or maybe we don't have access to read the file!) this should probably be explained better.
Platform (if different from the browser):
Windows 7 32 Bit
Build ID: 7122e39-92ed229-498d286-15e43b4-d70da21Browser:
This is fixed on Version 126.96.36.199 (Build ID: 815c576) of the Mac.
Setting to WORKSFORME as of Comment 1.
Greg M: Should this have returned with LO 4 in the meantime, please re-open this bug.
Still fixed as of LO 188.8.131.52