Fix bug #6873: Shell execution of \nonstopmode tried when no latex binary present

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@35351 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2010-09-12 22:23:55 +00:00
parent 9ae2d815f9
commit 7663f6953f
2 changed files with 9 additions and 3 deletions

View File

@ -921,10 +921,13 @@ def checkTeXAllowSpaces():
if lyx_check_config:
print "Checking whether TeX allows spaces in file names... ",
writeToFile('a b.tex', r'\message{working^^J}' )
if os.name == 'nt':
latex_out = cmdOutput(LATEX + r""" "\nonstopmode\input{\"a b\"}" """)
if LATEX != '':
if os.name == 'nt':
latex_out = cmdOutput(LATEX + r""" "\nonstopmode\input{\"a b\"}" """)
else:
latex_out = cmdOutput(LATEX + r""" '\nonstopmode\input{"a b"}' """)
else:
latex_out = cmdOutput(LATEX + r""" '\nonstopmode\input{"a b"}' """)
latex_out = ''
if 'working' in latex_out:
print 'yes'
tex_allows_spaces = 'true'

View File

@ -128,6 +128,9 @@ What's new
- Fix parsing of commands sent through the lyxserver, such that they don't
need to be terminated by a newline character (bug 6868).
- Don't try to blindly execute the latex command if no latex binary is
available (bug 6873).
* DOCUMENTATION AND LOCALIZATION