0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-02-22 21:37:04 +00:00
termux-packages/x11-packages/meld/handle-bindtextdomain-oserror.patch
Robert Kirkman fab4276aa2 addpkg(x11/meld): 3.22.2
Closes #18900

(that bug was described as "with the general intention of running meld", and this is a newer way and a newer version of meld than that)
2025-01-10 23:20:30 +05:30

12 lines
443 B
Diff

--- a/bin/meld
+++ b/bin/meld
@@ -141,7 +141,7 @@ try:
locale.bindtextdomain(locale_domain, str(locale_dir))
locale.bind_textdomain_codeset(locale_domain, 'UTF-8')
locale.textdomain(locale_domain)
-except AttributeError as e:
+except (AttributeError,OSError) as e:
# Python builds linked without libintl (i.e., OSX) don't have
# bindtextdomain(), which causes Gtk.Builder translations to fail.
print(