summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorPeng Huang <shawn.p.huang@gmail.com>2009-10-05 14:51:38 +0800
committerPeng Huang <shawn.p.huang@gmail.com>2009-10-05 14:51:38 +0800
commit3b45d3f4db14e9db2f49241c637fe93494020a76 (patch)
tree52f871b9c27aac41428455baf33545204b79998b /data
parent1ab8d3eaf4230c61ea4a78752334f99bac904621 (diff)
downloadibus-pinyin-3b45d3f4db14e9db2f49241c637fe93494020a76.tar.gz
Fix rpm build problems.
Diffstat (limited to 'data')
-rwxr-xr-xdata/db/google/create_db_from_google.py2
-rw-r--r--data/db/open-phrase/Makefile.am1
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