diff --git a/IPython/nbconvert/exporters/pdf.py b/IPython/nbconvert/exporters/pdf.py index 0ef2b2d..dfd852c 100644 --- a/IPython/nbconvert/exporters/pdf.py +++ b/IPython/nbconvert/exporters/pdf.py @@ -59,7 +59,7 @@ class PDFExporter(LatexExporter): command = [c.format(filename=filename) for c in command_list] #In windows and python 2.x there is a bug in subprocess.Popen and # unicode commands are not supported - if sys.platform == 'win32' and sys.version_info < (3,0): + if sys.platform == 'win32' or sys.version_info < (3,0): #We must use cp1252 encoding for calling subprocess.Popen #Note that sys.stdin.encoding and encoding.DEFAULT_ENCODING # could be different (cp437 in case of dos console)