[latex3-commits] [git/LaTeX3-latex3-latex3] main: change range in string test of l3str_convert (33c3f6be9)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Aug 17 09:23:01 CEST 2022


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/33c3f6be9a83fa0dfc8ccbb8102d2cb7945926fc

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

commit 33c3f6be9a83fa0dfc8ccbb8102d2cb7945926fc
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sun Aug 14 20:01:18 2022 +0200

    change range in string test of l3str_convert


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

33c3f6be9a83fa0dfc8ccbb8102d2cb7945926fc
 l3kernel/CHANGELOG.md                          | 2 ++
 l3kernel/l3str-convert.dtx                     | 4 ++--
 l3kernel/testfiles/m3str-convert002.luatex.tlg | 4 ++--
 l3kernel/testfiles/m3str-convert002.tlg        | 4 ++--
 l3kernel/testfiles/m3str-convert002.xetex.tlg  | 4 ++--
 5 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index fd5fa096f..2b33b5270 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -8,6 +8,8 @@ this project uses date-based 'snapshot' version identifiers.
 ## [Unreleased]
 
 ### Added
+- shortened range of chars which are left unchanged when converted to
+  strings with `\str_convert`. 
 - `\color_if_exist:n(TF)`
 - Support for case changing Vietnamese characters with 8-bit engines
 
diff --git a/l3kernel/l3str-convert.dtx b/l3kernel/l3str-convert.dtx
index 7e9cf89a7..ccef8132e 100644
--- a/l3kernel/l3str-convert.dtx
+++ b/l3kernel/l3str-convert.dtx
@@ -1686,10 +1686,10 @@
   }
 \prg_new_conditional:Npnn \@@_if_escape_string:N #1 { TF }
   {
-    \if_int_compare:w `#1 < "21 \exp_stop_f:
+    \if_int_compare:w `#1 < "27 \exp_stop_f:
       \prg_return_false:
     \else:
-      \if_int_compare:w `#1 > "7E \exp_stop_f:
+      \if_int_compare:w `#1 > "7A \exp_stop_f:
         \prg_return_false:
       \else:
         \prg_return_true:
diff --git a/l3kernel/testfiles/m3str-convert002.luatex.tlg b/l3kernel/testfiles/m3str-convert002.luatex.tlg
index 6eb36a091..c56419116 100644
--- a/l3kernel/testfiles/m3str-convert002.luatex.tlg
+++ b/l3kernel/testfiles/m3str-convert002.luatex.tlg
@@ -82,7 +82,7 @@ TEST 3: Escaping string
 TRUE
 \020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037
 TRUE
-\040!"#$%&'\(\)*+,-./
+\040\041\042\043\044\045\046'\(\)*+,-./
 TRUE
 0123456789:;<=>?
 TRUE
@@ -92,7 +92,7 @@ PQRSTUVWXYZ[\\]^_
 TRUE
 `abcdefghijklmno
 TRUE
-pqrstuvwxyz{|}~\177
+pqrstuvwxyz\173\174\175\176\177
 TRUE
 \200\201\202\203\204\205\206\207\210\211\212\213\214\215\216\217
 TRUE
diff --git a/l3kernel/testfiles/m3str-convert002.tlg b/l3kernel/testfiles/m3str-convert002.tlg
index b637fda11..da40f6217 100644
--- a/l3kernel/testfiles/m3str-convert002.tlg
+++ b/l3kernel/testfiles/m3str-convert002.tlg
@@ -81,7 +81,7 @@ TEST 3: Escaping string
 TRUE
 \020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037
 TRUE
-\040!"#$%&'\(\)*+,-./
+\040\041\042\043\044\045\046'\(\)*+,-./
 TRUE
 0123456789:;<=>?
 TRUE
@@ -91,7 +91,7 @@ PQRSTUVWXYZ[\\]^_
 TRUE
 `abcdefghijklmno
 TRUE
-pqrstuvwxyz{|}~\177
+pqrstuvwxyz\173\174\175\176\177
 TRUE
 \200\201\202\203\204\205\206\207\210\211\212\213\214\215\216\217
 TRUE
diff --git a/l3kernel/testfiles/m3str-convert002.xetex.tlg b/l3kernel/testfiles/m3str-convert002.xetex.tlg
index c1cfa2766..a82bd4fc2 100644
--- a/l3kernel/testfiles/m3str-convert002.xetex.tlg
+++ b/l3kernel/testfiles/m3str-convert002.xetex.tlg
@@ -81,7 +81,7 @@ TEST 3: Escaping string
 TRUE
 \020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037
 TRUE
-\040!"#$%&'\(\)*+,-./
+\040\041\042\043\044\045\046'\(\)*+,-./
 TRUE
 0123456789:;<=>?
 TRUE
@@ -91,7 +91,7 @@ PQRSTUVWXYZ[\\]^_
 TRUE
 `abcdefghijklmno
 TRUE
-pqrstuvwxyz{|}~\177
+pqrstuvwxyz\173\174\175\176\177
 TRUE
 \200\201\202\203\204\205\206\207\210\211\212\213\214\215\216\217
 TRUE





More information about the latex3-commits mailing list.