From 3e005d1055b5523484ca98f26fc2c090a5415a72 Mon Sep 17 00:00:00 2001 From: auouymous Date: Sun, 13 Aug 2023 04:47:46 -0600 Subject: [PATCH] Remove bind_textdomain_codeset call. It no longer exists in python 3.11. --- src/gpodder/utilwin32locale.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gpodder/utilwin32locale.py b/src/gpodder/utilwin32locale.py index 760a554f..54351b14 100644 --- a/src/gpodder/utilwin32locale.py +++ b/src/gpodder/utilwin32locale.py @@ -347,13 +347,11 @@ def install(domain, localedir): # initialize Python's gettext interface gettext.bindtextdomain(domain, localedir) - gettext.bind_textdomain_codeset(domain, 'UTF-8') # on windows systems, initialize libintl if sys.platform == 'win32' or sys.platform == 'nt': from ctypes import cdll libintl = cdll.LoadLibrary('libintl-8.dll') libintl.bindtextdomain(domain.encode('mbcs'), localedir.encode('mbcs')) - libintl.bind_textdomain_codeset(domain.encode('mbcs'), 'UTF-8'.encode('mbcs')) del libintl