sunpinyin: fix for Python 3.11

This commit is contained in:
Đoàn Trần Công Danh 2022-11-10 23:58:22 +07:00
parent 18922196cf
commit fe13a09b2c
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,12 @@
Index: sunpinyin-3.0.0.rc2/wrapper/ibus/setup/main.py
===================================================================
--- sunpinyin-3.0.0.rc2.orig/wrapper/ibus/setup/main.py
+++ sunpinyin-3.0.0.rc2/wrapper/ibus/setup/main.py
@@ -503,7 +503,6 @@ class MainWindow():
locale.setlocale(locale.LC_ALL, "")
localedir = os.getenv("IBUS_LOCALEDIR")
gettext.bindtextdomain(GETTEXT_PACKAGE, localedir)
- gettext.bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8")
def __init_options(self):
self.__fuzzy_setup = FuzzySetupDialog()

View File

@ -1,7 +1,7 @@
# Template file for 'sunpinyin'
pkgname=sunpinyin
version=3.0.0.rc2
revision=1
revision=2
build_style=scons
hostmakedepends="pkg-config python3 perl gettext"
makedepends="python3-devel sqlite-devel ibus-devel"