summaryrefslogtreecommitdiff
path: root/dev-db/sqlite/files/sqlite-3.49.0-icu-tests.patch
blob: 8211d1a146b2966a205d84bf4d2692ec826577f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
https://sqlite.org/forum/forumpost/f93323a743
https://sqlite.org/src/info/5964616dc9de9323
--- a/test/like3.test
+++ b/test/like3.test
@@ -302,15 +302,23 @@
 }
 
 #-------------------------------------------------------------------------
 reset_db
 
+# See forum thread https://sqlite.org/forum/info/d7b90d92ffbfc61f
 foreach enc {
   UTF-8
   UTF-16le 
   UTF-16be
 } {
+  ifcapable icu {
+    if {$enc=="UTF-8"} {
+      # The invalid UTF8 used in these tests is incompatible with ICU
+      # https://sqlite.org/forum/forumpost/2ca8a09a7e
+      continue
+    }
+  }
   foreach {tn expr} {
     1 "CAST (X'FF' AS TEXT)"
     2 "CAST (X'FFBF' AS TEXT)"
     3 "CAST (X'FFBFBF' AS TEXT)"
     4 "CAST (X'FFBFBFBF' AS TEXT)"