X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fscripts%2Ffig2pdftex.py;h=e20b2ad06b32e92169113cdc69af643de1c7da61;hb=f9f7c4a4bdab64ea5a0f31cbf7c2da68b2be9a68;hp=3be7004fdfa85dd0dc57a289e90895e0bf0a0b35;hpb=ad3a07c4f2925512611215dc653042855b2cae80;p=lyx.git diff --git a/lib/scripts/fig2pdftex.py b/lib/scripts/fig2pdftex.py index 3be7004fdf..e20b2ad06b 100644 --- a/lib/scripts/fig2pdftex.py +++ b/lib/scripts/fig2pdftex.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: iso-8859-15 -*- +# -*- coding: utf-8 -*- # file fig2pdf.py # This file is part of LyX, the document processor. @@ -78,7 +78,7 @@ else: # The generated PostScript commands are extracted from epstopdf, distributed # with tetex. epsfile = outbase + '.pstex' - tmp = open(epsfile + '.??', 'w') + tmp = mkstemp() boundingboxline = re.compile('%%BoundingBox:\s+(\d*)\s+(\d*)\s+(\d*)\s+(\d*)') for line in open(epsfile).xreadlines(): if line[:13] == '%%BoundingBox':