]> git.ipfire.org Git - pakfire.git/commitdiff
python: Don't mess with the Gettext configuration
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 12 Oct 2024 17:24:32 +0000 (17:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 12 Oct 2024 17:24:32 +0000 (17:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/pakfiremodule.c

index 2213fff8da6e78acae24300ad813d331818fa072..92142b23df426f1fcf7fb0a58f13a9375bc4e44c 100644 (file)
@@ -20,7 +20,6 @@
 
 #define PY_SSIZE_T_CLEAN
 #include <Python.h>
-#include <libintl.h>
 
 #include <pakfire/arch.h>
 #include <pakfire/dependencies.h>
@@ -120,11 +119,6 @@ static struct PyModuleDef moduledef = {
 };
 
 PyMODINIT_FUNC PyInit_pakfire(void) {
-       /* Initialize locale */
-       setlocale(LC_ALL, "");
-       bindtextdomain(PACKAGE_TARNAME, "/usr/share/locale");
-       textdomain(PACKAGE_TARNAME);
-
        // Create the module
        PyObject* module = PyModule_Create(&moduledef);
        if (!module)