Ticket #8839 (closed defect: invalid)
OpenDocument export fails when file name has parenthesis
| Reported by: | eposse | Owned by: | rgheck |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | converters | Version: | 2.0.3 |
| Severity: | minor | Keywords: | |
| Cc: |
Description
LyX Version: 2.0.3
Platform: Ubuntu 13.04, Linux kernel 3.8.0-30-generic
Steps to reproduce:
- create a file
- save it with a file name that includes parenthesis, such as "newfile1_(copy).lyx"
- Export as Open Document (File -> Export -> OpenDocument)
Result: status line shows "Succesful export to format: odt" but no .odt file is generated. When run from the command line the output is as follows:
-- begin of console output --
Running: latex "newfile1_(copy).tex" > /dev/null
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
restricted \write18 enabled.
entering extended mode
(./newfile1_(copy).tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, lo
aded.
Running: mk4ht oolatex "newfile1_(copy).tex"
mk4ht (2008-06-28-19:09)
/usr/share/tex4ht/htlatex newfile1_(copy).tex "xhtml,ooffice" "ooffice/! -cmozhtf" "-cooxtpipes -coo"
sh: 1: Syntax error: "(" unexpected
--- error --- failed to execute command
-- end of console output --
Thus, the culprit seems to be mk4ht.
Thanks for the bug report.
Replying to eposse:
You are right. mk4ht is not quoting the filename. I sent a patch in that corrects part of the issue and hopefully highlights the other part.
LyX is not at fault here. Further, mk4ht does not exit with error so that's why you see LyX report a successful export. LyX could theoretically check that the file "newfile1_(copy).odf" is indeed created. If you want, you can post an enhancement request for this.