Skip to content

Commit 9beffc6

Browse files
committed
Workaround some Android devices failed to load ICU functions.
1 parent 2a09e43 commit 9beffc6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fts/mm_cipher.c

+4
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ int sqlite3_register_mm_cipher(sqlite3 *db, const unsigned char *key)
223223
int sqlite_err;
224224
mm_cipher_context_t *ctx;
225225

226+
// XXX: if we failed to load ICU functions, just skip initializing.
227+
if (!ucnv_openCCSID)
228+
return SQLITE_OK;
229+
226230
ctx = sqlite3_malloc(sizeof(mm_cipher_context_t));
227231
if (!ctx)
228232
return SQLITE_NOMEM;

0 commit comments

Comments
 (0)