We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
! Emergency stop.
#45 とどれほど関係があるかわかりませんが,Slack にもほぼ同じことを書いたのでここに書いておきます.
hoge.tex を
\message{ゆ き だ る ま}\endinput
という一行だけのファイルとし,これを ptex で処理すると
$ ptex hoge This is pTeX, Version 3.14159265-p3.8.3 (utf8.euc) (TeX Live 2020) (preloaded format=ptex) restricted \write18 enabled. (./hoge.tex ゆ き だ る ま) *
と入力待ち状態になります.その後 Ctrl-D を押すと ! Emergency stop. になるわけですが,その際に出力されるメッセージが
<*> ^^@oge
と,先頭バイトだけ NUL に変わってしまいます.
tex, pdftex ですと
<*> hoge
ときちんとファイル名全体が表示されます
The text was updated successfully, but these errors were encountered:
ptexenc.c の input_line2 関数で,buffer[last] = '\0';……① と NUL を書き込んでいることが直接の原因のようです.
input_line2
buffer[last] = '\0';
pTeX が input_line 関数(lib/openclose.c) でファイル終端以外の「一行」を読むときには,input_line2 で一行読んた後に buffer[last] = ' '; と上書きされます.そのため①がどこまで必要なのかわかりませんが,とりあえず①を
input_line
buffer[last] = ' ';
if (i != EOF || first != last) buffer[last] = '\0';
とすると症状は収まるようです.
Sorry, something went wrong.
ptexenc: fix a bug in input_line2() (#100)
0a54dbf
有難うございます。 動作を確認しました。 TeX Live svnにコミットしました。(r55082)
7e3660d
No branches or pull requests
#45 とどれほど関係があるかわかりませんが,Slack にもほぼ同じことを書いたのでここに書いておきます.
hoge.tex を
という一行だけのファイルとし,これを ptex で処理すると
と入力待ち状態になります.その後 Ctrl-D を押すと
! Emergency stop.
になるわけですが,その際に出力されるメッセージがと,先頭バイトだけ NUL に変わってしまいます.
tex, pdftex ですと
ときちんとファイル名全体が表示されます
The text was updated successfully, but these errors were encountered: