From 6decd24cc22116dea9da17c548d0ea0e9b6d5bfc Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 10 Nov 2006 21:12:47 +0000 Subject: [BZ #3483] * elf/ldconfig.c (main): Call setlocale and textdomain. Patch mostly by Benno Schulenberg . --- elf/ldconfig.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'elf') 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 #include #include +#include #include #include #include @@ -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 -- cgit v1.2.3