Skip to content
New issue

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

[ptex] エラー出力の余分なバイト #59

Closed
aminophen opened this issue May 2, 2018 · 3 comments
Closed

[ptex] エラー出力の余分なバイト #59

aminophen opened this issue May 2, 2018 · 3 comments
Labels

Comments

@aminophen
Copy link
Member

aminophen commented May 2, 2018

#58 とは違うような気もしますが,「ptex -ini -kanji-internal=euc だとターミナル出力が変で, ptex -ini -kanji-internal=sjis だと普通」な例を出します。

\catcode`^=7\relax
\q
% => ! Undefined control sequence. l.2 \q
\^^c5
% => ! Undefined control sequence. l.4 \� (!?)
\^^c5
% => ! Undefined control sequence. l.6 \� (!?)
\show\q
% => > \q=undefined.
\^^c5
% => ! Undefined control sequence. l.10 \Åh (!?)
\^^c5
% => ! Undefined control sequence. l.12 \Åh (!?)
\^^c5 %
% => ! Undefined control sequence. l.14 \Å %
\^^c52
% => ! Undefined control sequence. l.16 \Å2
\^^c5
% => ! Undefined control sequence. l.18 \Å2 (!?)
\end
@h-kitagawa
Copy link
Member

\Åh の h は,それより上の行にある \show の h が配列 trick_buf に残ってしまったもののようです.まだ完全に追いきれてはいませんが…….

h-kitagawa added a commit that referenced this issue May 5, 2018
@h-kitagawa
Copy link
Member

h-kitagawa commented May 10, 2018

4a682e1 でテストを加えました.なんとなく直っている気がしますが,どうでしょうか?

→実際にだめな例は作っていませんが,trick_buf2 は環状バッファなので,trick_buif2[p mod error_line] 設定と同時に trick_buf2[(p+1) mod error_line] を初期化する今の修正案ではまずい気がします.引き続き考えます.

@aminophen
Copy link
Member Author

#81 の修正後,なんだか発生しなくなっているのでひとまず閉じておきます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants