diff options
Diffstat (limited to 'elf')
-rw-r--r-- | elf/ldconfig.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/elf/ldconfig.c b/elf/ldconfig.c index 1b64a9de8b..40f445670f 100644 --- a/elf/ldconfig.c +++ b/elf/ldconfig.c @@ -24,6 +24,7 @@ #include <errno.h> #include <inttypes.h> #include <libintl.h> +#include <locale.h> #include <stdbool.h> #include <stdio.h> #include <stdio_ext.h> @@ -1166,9 +1167,14 @@ set_hwcap (void) int main (int argc, char **argv) { - int remaining; + /* Set locale via LC_ALL. */ + setlocale (LC_ALL, ""); + + /* Set the text message domain. */ + textdomain (_libc_intl_domainname); /* Parse and process arguments. */ + int remaining; argp_parse (&argp, argc, argv, 0, &remaining, NULL); /* Remaining arguments are additional directories if opt_manual_link |