https://bugs.documentfoundation.org/show_bug.cgi?id=120822

Mike Kaganski <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #4 from Mike Kaganski <[email protected]> ---
This is not a bug.

A file created by the "New Microsoft Word Document" context menu option in
Windows Explorer is an invalid DOCX. It isn't a zip with a proper directory
structure and XMLs, it's just an empty file. The context menu option is
presumably added by MS Office (at least it's absent on a newly-installed
Win8.1, and exists on my Win10 with MS Office installed).

Opening any file in LibreOffice involves detection of its format, not only by
checking its file extension (which is often misleading), but also by checking
its internal structure. For the empty "DOCX" in this case, the only possible
detection is plain text, which is naturally remembered and used later on save.
And when you save the file first time, you are presented with a warning message
stating the detected format:

> ====
> Confirm File Format
> ====
> This document may contain formatting or content that cannot be saved
> in the currently selected file format “Text”.
> 
> Use the default ODF file format to be sure that the document is saved
> correctly.
> 
> [x] Ask when not saving in ODF or default format
> 
>       [Use Text format]  [Use ODF Format]
> ====

Note that "Use Text format", which is different from what you see when the file
is indeed a proper DOCX, or you choose DOCX manually:

      [Use Word 2007-2019 format]  [Use ODF Format]

So, while it's a pity that MS Office uses this strange technique to create
invalid files instead of creating proper blank documents (compare to what
happens when you choose to create a new ODT), it's not something that
LibreOffice should change, or else it would result in massive regressions in
other areas. Just pay attention to the detected format, and press Esc in the
warning dialog to choose the desired output format.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to