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

            Bug ID: 151446
           Summary: command line convert-to option  codepage issue
           Product: LibreOffice
           Version: 7.4.1.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
command line like 
soffice.exe --convert-to html Test.ods
produces html file with UTF8 coding at 7.4.1 release while 7.3.6 produces it
with default codepage CP1251
As well the options specified in the documentation for "--convert-to" either do
not work or it is not clear what they are doing

Also in most cases LibreOffice do nothing without any diagnostics, сan't figure
out what's wrong

Steps to Reproduce:
1. look at
https://help.libreoffice.org/latest/ru/text/shared/guide/start_parameters.html?&DbPAR=SHARED&System=WIN
 at --convert-to  option
2.  Create test calc and/or text file  test.ods or test.odt
3. Try convert it to html from command line
4. Look at codepage of test.html
5. Next try convert to html with non UTF-8 codepage
6. Next try convert to txt

Actual Results:
There is a set of windows command files (cmd)
-----
REM no results
"C:\Program Files\LibreOffice\program\soffice.exe" --convert-to "txt:Text
(encoded):UTF8" "Test.ods"
-----
REM no results
"C:\Program Files\LibreOffice\program\soffice.exe" --convert-to txt "Test.ods"
-----
REM test.html 1052 bytes long  with UTF8 coding
REM start with <!DOCTYPE html>
"C:\Program Files\LibreOffice\program\soffice.exe" --convert-to html "Test.ods"
-----
REM 7.4.1.1 create test.html with UTF8 coding
REM 7.3.6.2 createtest.html with CP1251 coding
"C:\Program Files\LibreOffice\program\soffice.exe" --convert-to "html"
"Test.ods"
--------
REM no results, no diagnostic
"C:\Program Files\LibreOffice\program\soffice.exe" --convert-to "html:"
"Test.ods"
-----
REM test.html 0 bytes long created
"C:\Program Files\LibreOffice\program\soffice.exe" --convert-to "html:XHTML
Writer File:UTF8"  "Test.ods"
-----
REM test.html with UTF8 coding created
"C:\Program Files\LibreOffice\program\soffice.exe" --convert-to "html:XHTML
Writer File:UTF8"  "test.odt"
-----
REM no results, no diagnostic
"C:\Program Files\LibreOffice\program\soffice.exe" --convert-to "html:HTML
Document (Writer):UTF8"  "test.odt"
-----
REM test.html 2415 bytes long  with UTF8 coding
REM start with <?xml version="1.0" encoding="UTF-8"?>
"C:\Program Files\LibreOffice\program\soffice.exe" --convert-to "html:XHTML
Calc File:UTF8"  "test.ods"




Expected Results:
Documentation should not soar brains and Libreoffice should work as expected


Reproducible: Always


User Profile Reset: No



Additional Info:
The documentation should contain clear instructions with examples how to
convert Calc files (i.e. .ods  and .xls ) to html with required codepage

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to