Merge branch 'enosys/locale' of https://github.com/t-8ch/util-linux
Some checks failed
CIFuzz / Fuzzing (i386, address) (push) Has been cancelled
CIFuzz / Fuzzing (x86_64, address) (push) Has been cancelled
CIFuzz / Fuzzing (x86_64, memory) (push) Has been cancelled
CIFuzz / Fuzzing (x86_64, undefined) (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled

This commit is contained in:
Karel Zak 2023-07-03 12:52:38 +02:00
commit 689c03b416

View file

@ -96,6 +96,10 @@ int main(int argc, char **argv)
bool blocked_syscalls[ARRAY_SIZE(syscalls)] = {}; 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) { while ((c = getopt_long (argc, argv, "+Vhs:l", longopts, NULL)) != -1) {
switch (c) { switch (c) {
case 's': case 's':