]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
enosys: enable locale handling
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 27 Jun 2023 09:24:21 +0000 (11:24 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 27 Jun 2023 10:45:37 +0000 (12:45 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
misc-utils/enosys.c

index ec02f454f6fa4fab908a340bc2bb9bd4f1c87b1e..9ec80c685b19b9f55b3fe274dba11558c2acd618 100644 (file)
@@ -96,6 +96,10 @@ int main(int argc, char **argv)
 
        bool blocked_syscalls[ARRAY_SIZE(syscalls)] = {};
 
+       setlocale(LC_ALL, "");
+       bindtextdomain(PACKAGE, LOCALEDIR);
+       textdomain(PACKAGE);
+
        while ((c = getopt_long (argc, argv, "+Vhs:l", longopts, NULL)) != -1) {
                switch (c) {
                case 's':