diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-09-19 05:33:36 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-09-19 05:33:36 +0000 |
commit | 3882b010780ca1aa1ed5d7b38e936cd2d6d5486b (patch) | |
tree | c806a73a13afd3265ba6b538ba73cae065c591f5 /binutils/dllwrap.c | |
parent | 6b819c92c4512ccfba90f0caa204ab687fae8254 (diff) | |
download | binutils-3882b010780ca1aa1ed5d7b38e936cd2d6d5486b.zip binutils-3882b010780ca1aa1ed5d7b38e936cd2d6d5486b.tar.gz binutils-3882b010780ca1aa1ed5d7b38e936cd2d6d5486b.tar.bz2 |
Locale changes from Bruno Haible <haible@clisp.cons.org>.
Diffstat (limited to 'binutils/dllwrap.c')
-rw-r--r-- | binutils/dllwrap.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/binutils/dllwrap.c b/binutils/dllwrap.c index 8f83dda..fb92cb2 100644 --- a/binutils/dllwrap.c +++ b/binutils/dllwrap.c @@ -1,5 +1,5 @@ /* dllwrap.c -- wrapper for DLLTOOL and GCC to generate PE style DLLs - Copyright 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc. Contributed by Mumit Khan (khan@xraylith.wisc.edu). This file is part of GNU Binutils. @@ -36,7 +36,6 @@ #include "getopt.h" #include "dyn-string.h" -#include <ctype.h> #include <time.h> #include <sys/stat.h> @@ -664,6 +663,15 @@ main (argc, argv) program_name = argv[0]; +#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES) + setlocale (LC_MESSAGES, ""); +#endif +#if defined (HAVE_SETLOCALE) + setlocale (LC_CTYPE, ""); +#endif + bindtextdomain (PACKAGE, LOCALEDIR); + textdomain (PACKAGE); + saved_argv = (char **) xmalloc (argc * sizeof (char*)); dlltool_arg_indices = (int *) xmalloc (argc * sizeof (int)); driver_arg_indices = (int *) xmalloc (argc * sizeof (int)); |