From d191a7bef8805e074b6cd972ff1d20a9b8dbf69a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Tue, 27 Jun 2023 11:24:21 +0200 Subject: [PATCH] enosys: enable locale handling MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Weißschuh --- misc-utils/enosys.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc-utils/enosys.c b/misc-utils/enosys.c index ec02f454f6..9ec80c685b 100644 --- a/misc-utils/enosys.c +++ b/misc-utils/enosys.c @@ -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': -- 2.47.2