summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2020-07-07 00:26:05 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2020-07-07 00:26:05 +0000
commitd5de6748c5d3d1fbad8584e1b3573eceeb012049 (patch)
treef0f61a57539e8684b4f09a0777e7e8866faff740 /Build/source
parent3f410cb225c6fa49d9fd9ca06f6e1754df8249b4 (diff)
sync with tex.ch
git-svn-id: svn://tug.org/texlive/trunk@55770 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/texk/web2c/alephdir/ChangeLog5
-rw-r--r--Build/source/texk/web2c/alephdir/com16bit.ch21
2 files changed, 25 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/alephdir/ChangeLog b/Build/source/texk/web2c/alephdir/ChangeLog
index 11c51b4dcd3..eae6726fbef 100644
--- a/Build/source/texk/web2c/alephdir/ChangeLog
+++ b/Build/source/texk/web2c/alephdir/ChangeLog
@@ -1,3 +1,8 @@
+2020-07-07 Akira Kakuto <kakuto@w32tex.org>
+
+ * com16bit.ch: Sync with tex.ch (avoid seg fault in unusual
+ interaction sequence).
+
2020-02-10 Akira Kakuto <kakuto@w32tex.org>
* com16bit.ch: Sync with tex.ch for changes by Phelype Oleinik
diff --git a/Build/source/texk/web2c/alephdir/com16bit.ch b/Build/source/texk/web2c/alephdir/com16bit.ch
index e39b8183e85..3ac2ffce5ac 100644
--- a/Build/source/texk/web2c/alephdir/com16bit.ch
+++ b/Build/source/texk/web2c/alephdir/com16bit.ch
@@ -729,7 +729,26 @@ do_final_end;
end;
@z
-@x [6.84] l.1888 - Implement the switch-to-editor option.
+% Original reports:
+% https://tex.stackexchange.com/questions/551313/
+% https://tug.org/pipermail/tex-live/2020-June/045876.html
+%
+% This will probably be fixed by DEK in the 2021 tuneup in a different
+% way (so we'll have to remove or alter this change), but the interaction
+% sequence in the reports above causes a segmentation fault in web2c -
+% writing to the closed \write15 stream because we wrongly decrement
+% selector from 16 to 15 in term_input, due to the lack of this check in
+% a recursive error() call.
+%
+@x [6.83] l.1893 - avoid wrong interaction
+loop@+begin continue: clear_for_error_prompt; prompt_input("? ");
+@y
+loop@+begin continue:
+if interaction<>error_stop_mode then return;
+clear_for_error_prompt; prompt_input("? ");
+@z
+
+@x [6.84] l.1904 - Implement the switch-to-editor option.
line ready to be edited. But such an extension requires some system
wizardry, so the present implementation simply types out the name of the
file that should be