# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/gimp/hotfix-locale.patch # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- fix installing w/o en_UZ locale: ERROR: ../tools/gen-languages.c: setlocale() failed. The build system needs to be set up for localization. Please install at least "en_US.UTF-8" or set a locale other than C or POSIX. --- gimp-3.2.0/tools/gen-languages.c.vanilla 2026-03-16 13:17:27.842370693 +0100 +++ gimp-3.2.0/tools/gen-languages.c 2026-03-16 13:19:02.632432740 +0100 @@ -281,6 +281,7 @@ } locale = setlocale (LC_ALL, ""); +#if 0 if (g_strcmp0 (locale, "C") == 0 || g_strcmp0 (locale, "POSIX") == 0 || g_str_has_prefix (locale, "C.")) { /* Note: we do not care about what we set, except not C or POSIX. @@ -299,6 +300,7 @@ exit (EXIT_FAILURE); } } +#endif /* Generate the localized language names. */ g_hash_table_iter_init (&lang_iter, l10n_lang_list);