textmate/latex.tmbundle — pull request #81 by dxmtb (2014-04-03 08:48:51+00:00)
Title: set default encoding utf-8

fix bug when building latex file with name in utf-8

For example, if file name is in Chinese, following exception will happen:

Traceback (most recent call last):
File "/Users/tb/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/texMate.py", line 615, in texStatus,isFatal,numErrs,numWarns = run_latex(texCommand,fileName,verbose) File "/Users/tb/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/texMate.py", line 127, in run_latex runObj = Popen(ltxcmd+" "+shell_quote(texfile),shell=True,stdout=PIPE,stdin=PIPE,stderr=STDOUT,close_fds=True) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 1: ordinal not in range(128)