Skip to content

Commit

Permalink
(u)ptex-sjis: add test for CP932, it works only on Windows, more (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-tk committed Dec 18, 2022
1 parent 2bd69aa commit 23ee5ea
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion source/texk/web2c/uptexdir/pfname.test
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,20 @@ for doc in fn①㎝Ⅶ閒ア-$fenc; do
if [ "$COMSPEC" != "" ]; then
echo "*** We guess OS is Windows."
if [ $fenc != euc ]; then ienc="sjis"; fi
if [ $ienc = uptex ]; then
command_line_encoding=utf8
export command_line_encoding
else
command_line_encoding=none
export command_line_encoding
fi
else
echo "*** We guess OS is not Windows."
if [ $fenc != sjis ]; then ienc="euc"; fi
fi

echo '>>> Document:'$doc ' File Encoding:'$fenc ' Internal Encoding:'$ienc
./ptex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc $doc.tex >uptests/$doc-$fenc-term.log || $rc=3
./uptex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc $doc.tex >uptests/$doc-$fenc-term.log || $rc=3
mv $doc-$ienc.txt $doc-$ienc.log uptests/
diff uptests/$doc-$ienc.txt $srcdir/ptexdir/tests/fn-$fenc.txt || $rc=4

Expand Down

0 comments on commit 23ee5ea

Please sign in to comment.