[latex3-commits] [git/LaTeX3-latex3-latex3] main: Make ConTeXt detection in l3file more robust (75fe4f341)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Jul 25 16:43:21 CEST 2022


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/75fe4f341180827f95d02498d76d82805406a622

>---------------------------------------------------------------

commit 75fe4f341180827f95d02498d76d82805406a622
Author: Vít Novotný <witiko at mail.muni.cz>
Date:   Mon Jul 25 16:35:19 2022 +0200

    Make ConTeXt detection in l3file more robust
    
    See <https://mailman.ntg.nl/pipermail/dev-context/2022/003916.html>.


>---------------------------------------------------------------

75fe4f341180827f95d02498d76d82805406a622
 l3kernel/l3file.dtx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/l3kernel/l3file.dtx b/l3kernel/l3file.dtx
index 08599c4b1..3a4c41d0c 100644
--- a/l3kernel/l3file.dtx
+++ b/l3kernel/l3file.dtx
@@ -981,7 +981,7 @@
 \int_step_inline:nnn
   { 0 }
   {
-    \str_if_eq:VnTF \c_sys_engine_format_str { cont-en }
+    \cs_if_exist:NTF \contextversion
       { \tex_count:D 38 ~ }
       {
         \tex_count:D 16 ~ %
@@ -1061,7 +1061,7 @@
 %    \begin{macrocode}
 \exp_args:NNf \cs_new_protected:Npn \@@_new:N
   { \exp_args:NNc \exp_after:wN \exp_stop_f: { newread } }
-\str_if_eq:VnT \c_sys_engine_format_str { cont-en }
+\cs_if_exist:NT \contextversion
   {
     \cs_new_eq:NN \@@_new_aux:N \@@_new:N
     \cs_gset_protected:Npn \@@_new:N #1
@@ -1441,7 +1441,7 @@
 \int_step_inline:nnn
   { 0 }
   {
-    \str_if_eq:VnTF \c_sys_engine_format_str { cont-en }
+    \cs_if_exist:NTF \contextversion
       { \tex_count:D 39 ~ }
       {
         \tex_count:D 17 ~
@@ -1505,7 +1505,7 @@
 %    \begin{macrocode}
 \exp_args:NNf \cs_new_protected:Npn \@@_new:N
   { \exp_args:NNc \exp_after:wN \exp_stop_f: { newwrite } }
-\str_if_eq:VnT \c_sys_engine_format_str { cont-en }
+\cs_if_exist:NT \contextversion
   {
     \cs_new_eq:NN \@@_new_aux:N \@@_new:N
     \cs_gset_protected:Npn \@@_new:N #1





More information about the latex3-commits mailing list.