aboutsummaryrefslogtreecommitdiff
path: root/tests/regexp2.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regexp2.test')
-rw-r--r--tests/regexp2.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/regexp2.test b/tests/regexp2.test
index 4d915c2..3f357b6 100644
--- a/tests/regexp2.test
+++ b/tests/regexp2.test
@@ -810,6 +810,12 @@ test regexpComp-21.10 {regexp command compiling tests} {
# list [regsub -all "" "" bar str] $str
# }
#} {0 {}}
+test regexpComp-21.12 {regexp empty pattern with utf8} utf8 {
+ # Make sure the second char isn't sliced up
+ evalInProc {
+ regsub -all "" a\u0442bc !
+ }
+} "!a!\u0442!b!c"
# We can forgive the underlying regexp engine for not supporting this.
# Why not use this instead? "((^X)*|\$)"