sunpinyin: fix for Python 3.11
This commit is contained in:
parent
18922196cf
commit
fe13a09b2c
|
@ -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()
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue