From bc4819b082d8683ef5cc246c21ac834e41430855 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 14 May 2018 22:38:13 +0000 Subject: ptex2pdf (14may18) git-svn-id: svn://tug.org/texlive/trunk@47716 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/ptex2pdf/ptex2pdf.lua | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist/scripts/ptex2pdf') diff --git a/Master/texmf-dist/scripts/ptex2pdf/ptex2pdf.lua b/Master/texmf-dist/scripts/ptex2pdf/ptex2pdf.lua index 9885f044aa7..2bba4546eaa 100755 --- a/Master/texmf-dist/scripts/ptex2pdf/ptex2pdf.lua +++ b/Master/texmf-dist/scripts/ptex2pdf/ptex2pdf.lua @@ -1,7 +1,7 @@ #!/usr/bin/env texlua NAME = "ptex2pdf[.lua]" -VERSION = "20170622.0" +VERSION = "20180514.0" AUTHOR = "Norbert Preining" AUTHOREMAIL = "norbert@preining.info" SHORTDESC = "Convert Japanese TeX documents to pdf" @@ -29,9 +29,9 @@ options: -v version LICENSECOPYRIGHT = [[ Originally based on musixtex.lua from Bob Tennent. -(c) Copyright 2016-2017 Japanese TeX Development Community -(c) Copyright 2013-2017 Norbert Preining norbert@preining.info -(c) Copyright 2012 Bob Tennent rdt@cs.queensu.ca +(c) Copyright 2016-2018 Japanese TeX Development Community +(c) Copyright 2013-2018 Norbert Preining norbert@preining.info +(c) Copyright 2012 Bob Tennent rdt@cs.queensu.ca This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -174,6 +174,9 @@ CHANGELOG = [[ first replace all backslash chars to slash chars - version 20170622.0 pass all non-optional arguments before filename to TeX engine +- version 20180514.0 + Windows: for uptex use command_line_encoding=utf8, for all other turn + it off (set to none) ]] @@ -406,9 +409,11 @@ end -- we are still here, so we found a file -- make sure that on Windows/uptex we are using utf8 as command line encoding -if use_uptex == 1 then - if os.type == 'windows' then +if os.type == 'windows' then + if use_uptex == 1 then os.setenv('command_line_encoding', 'utf8') + else + os.setenv('command_line_encoding', 'none') end end if (outputdir ~= ".") then -- cgit v1.2.3