Skip to content

Commit

Permalink
(u)ptex-sjis: test for U+FF5E fullwidth tilde, only on Windows (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-tk committed Dec 18, 2022
1 parent 23ee5ea commit 3de0565
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions source/texk/web2c/ptexdir/pfname.test
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ done

# pTeX, CP932 characters
for fenc in sjis; do
for doc in fn①㎝Ⅶ閒ア-$fenc; do
for doc in fn①㎝Ⅶ閒ア-$fenc; do

ienc=$fenc
if [ "$COMSPEC" != "" ]; then
Expand All @@ -62,7 +62,7 @@ for doc in fn①㎝Ⅶ閒ア-$fenc; do

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

done
Expand Down
17 changes: 0 additions & 17 deletions source/texk/web2c/ptexdir/tests/fn①㎝Ⅶ閒ア-sjis.tex

This file was deleted.

17 changes: 17 additions & 0 deletions source/texk/web2c/ptexdir/tests/fn①㎝Ⅶ閒ア~-sjis.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
% fn①㎝Ⅶ閒ア~-sjis.tex
% Shift_JIS encoding, including CP932 platform-dependent characters
\catcode`\{=1
\catcode`\}=2

\immediate\write16{JOB[\jobname] :: We are in fn①㎝Ⅶ閒ア~-sjis.tex}

\immediate\openout1=fn①㎝Ⅶ閒ア~-sjis.txt
\immediate\closeout1

\input fn①㎝Ⅶ閒ア~-sjis.txt

\immediate\openout0=\jobname.txt
\immediate\write0{abc αβγ абв あア※¥ 天地人}
\immediate\closeout0

\relax\end
4 changes: 2 additions & 2 deletions source/texk/web2c/uptexdir/pfname.test
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ done

# pTeX compatible mode, CP932 characters
for fenc in sjis; do
for doc in fn①㎝Ⅶ閒ア-$fenc; do
for doc in fn①㎝Ⅶ閒ア-$fenc; do

ienc=$fenc
if [ "$COMSPEC" != "" ]; then
Expand All @@ -87,7 +87,7 @@ for doc in fn①㎝Ⅶ閒ア-$fenc; do

echo '>>> Document:'$doc ' File Encoding:'$fenc ' Internal Encoding:'$ienc
./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/
mv $doc*.txt $doc-$ienc.log uptests/
diff uptests/$doc-$ienc.txt $srcdir/ptexdir/tests/fn-$fenc.txt || $rc=4

done
Expand Down

0 comments on commit 3de0565

Please sign in to comment.