summaryrefslogtreecommitdiff
path: root/dev-db/sqlite/files/sqlite-3.49.0-icu-tests.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2025-02-15 00:13:03 +0000
committerV3n3RiX <venerix@koprulu.sector>2025-02-15 00:13:03 +0000
commit770d63f36dbe1722e0ff9ab55eeca49986f01527 (patch)
treebe9aae0ef5001e4669f914ac9ad9b4eaa4db8500 /dev-db/sqlite/files/sqlite-3.49.0-icu-tests.patch
parent4fda045f90a4e301329bddb766e2e12a0b4401de (diff)
gentoo auto-resync : 15:02:2025 - 00:13:02HEADmaster
Diffstat (limited to 'dev-db/sqlite/files/sqlite-3.49.0-icu-tests.patch')
-rw-r--r--dev-db/sqlite/files/sqlite-3.49.0-icu-tests.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-db/sqlite/files/sqlite-3.49.0-icu-tests.patch b/dev-db/sqlite/files/sqlite-3.49.0-icu-tests.patch
new file mode 100644
index 000000000000..8211d1a146b2
--- /dev/null
+++ b/dev-db/sqlite/files/sqlite-3.49.0-icu-tests.patch
@@ -0,0 +1,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)"
+