aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-11-10 21:12:47 +0000
committerUlrich Drepper <drepper@redhat.com>2006-11-10 21:12:47 +0000
commit6decd24cc22116dea9da17c548d0ea0e9b6d5bfc (patch)
tree4d3462cb2df095944ff830ca20fd2b371b605eb8 /elf
parent4260af60e9361dbb07af8e0e6ce28cdfa6e0bdba (diff)
downloadglibc-6decd24cc22116dea9da17c548d0ea0e9b6d5bfc.zip
glibc-6decd24cc22116dea9da17c548d0ea0e9b6d5bfc.tar.gz
glibc-6decd24cc22116dea9da17c548d0ea0e9b6d5bfc.tar.bz2
[BZ #3483]
* elf/ldconfig.c (main): Call setlocale and textdomain. Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
Diffstat (limited to 'elf')
-rw-r--r--elf/ldconfig.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/elf/ldconfig.c b/elf/ldconfig.c
index 1b64a9d..40f4456 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