diff options
author | Peng Huang <shawn.p.huang@gmail.com> | 2009-10-05 14:51:38 +0800 |
---|---|---|
committer | Peng Huang <shawn.p.huang@gmail.com> | 2009-10-05 14:51:38 +0800 |
commit | 3b45d3f4db14e9db2f49241c637fe93494020a76 (patch) | |
tree | 52f871b9c27aac41428455baf33545204b79998b /data | |
parent | 1ab8d3eaf4230c61ea4a78752334f99bac904621 (diff) | |
download | ibus-libpinyin-3b45d3f4db14e9db2f49241c637fe93494020a76.tar.gz ibus-libpinyin-3b45d3f4db14e9db2f49241c637fe93494020a76.tar.xz ibus-libpinyin-3b45d3f4db14e9db2f49241c637fe93494020a76.zip |
Fix rpm build problems.
Diffstat (limited to 'data')
-rwxr-xr-x | data/db/google/create_db_from_google.py | 2 | ||||
-rw-r--r-- | data/db/open-phrase/Makefile.am | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/data/db/google/create_db_from_google.py b/data/db/google/create_db_from_google.py index ff4b7f8..4cb3c61 100755 --- a/data/db/google/create_db_from_google.py +++ b/data/db/google/create_db_from_google.py @@ -49,7 +49,7 @@ def create_db(): s, y = pinyin_id[s], pinyin_id[y] columns.append(s) columns.append(y) - values = "'%s', %d, %s" % (hanzi, l - i, ",".join(map(str,columns))) + values = "'%s', %d, %s" % (hanzi.encode("utf8"), l - i, ",".join(map(str,columns))) sql = insert_sql % (len(hanzi) - 1, values) print sql diff --git a/data/db/open-phrase/Makefile.am b/data/db/open-phrase/Makefile.am index 5947abb..2acc892 100644 --- a/data/db/open-phrase/Makefile.am +++ b/data/db/open-phrase/Makefile.am @@ -23,7 +23,6 @@ if IBUS_BUILD_DB_OPEN_PHRASE db_file = open-phrase.db main_db_DATA = \ db/$(db_file) \ - db/COPYING \ $(NULL) main_dbdir = $(pkgdatadir)/db |