File ibus-pinyin-use-single-quote-for-sqlite-3.41.0.patch of Package ibus-pinyin.32999
commit ffe471c94e951ca0a78f8fd69c60db4a65e1cb95
Author: jinqiang zhang <peeweep@0x0.ee>
Date: Mon Feb 27 03:48:53 2023 +0000
Fix sqlite 3.41.0 build failed
As sqlite 3.41.0 release note say:
The double-quoted string misfeature is now disabled by default for CLI
builds. Legacy use cases can reenable the misfeature at run-time using
the ".dbconfig dqs_dml on" and ".dbconfig dqs_ddl on" commands.
We should change this double quote to single quote
Ref: https://bugs.gentoo.org/896366
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
diff -Nura ibus-pinyin-1.5.0/data/db/english/english.awk ibus-pinyin-1.5.0_new/data/db/english/english.awk
--- ibus-pinyin-1.5.0/data/db/english/english.awk 2024-03-16 01:11:44.485851661 +0800
+++ ibus-pinyin-1.5.0_new/data/db/english/english.awk 2024-03-16 01:11:54.540822916 +0800
@@ -16,7 +16,7 @@
}
# Insert data into english table
- { printf "INSERT INTO english (word, freq) VALUES (\"%s\", \"%f\");\n", $1, $2}
+ { printf "INSERT INTO english (word, freq) VALUES (\'%s\', %f);\n", $1, $2}
#quit sqlite3
END {