[Bug 282990] graphics/mypaint : AttributeError: module 'gettext' has no attribute 'bind_textdomain_codeset'

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 14 Mar 2025 13:28:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282990

rdunkle@smallcatbrain.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rdunkle@smallcatbrain.com

--- Comment #1 from rdunkle@smallcatbrain.com ---
File "/usr/local/lib/mypaint/lib/gettext_setup.py", line 192, in init_gettext
    c = gettext.bind_textdomain_codeset(dom, codeset)

python 3.11 no longer has this function--> gettext.bind_textdomain_codeset(dom,
codeset)

to get the program to run comment out and return null values:
line 191:

#        p = gettext.bindtextdomain(dom, path)
        p = ""
        c = ""
#       c = gettext.bind_textdomain_codeset(dom, codeset)

The python will then use the system locale.

-- 
You are receiving this mail because:
You are the assignee for the bug.