aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2001-10-19 15:17:39 +0000
committerZack Weinberg <zack@gcc.gnu.org>2001-10-19 15:17:39 +0000
commit191bf464071d7cd21095b9f1d119c05fd8306493 (patch)
tree081319da8a2e78a4efbfcb39e1acf6aca8752c83 /gcc/gcov.c
parent7c87e9f9216fd7959a5365ae62f9173ce524d21b (diff)
downloadgcc-191bf464071d7cd21095b9f1d119c05fd8306493.zip
gcc-191bf464071d7cd21095b9f1d119c05fd8306493.tar.gz
gcc-191bf464071d7cd21095b9f1d119c05fd8306493.tar.bz2
aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and USE_INCLUDED_LIBINTL when appropriate.
* aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and USE_INCLUDED_LIBINTL when appropriate. * configure, config.in: Regenerate. * Makefile.in (datadir): Set to @datadir@. (intl.o): Also depend on $(CONFIG_H) and system.h. * intl.c: Factor out common gettext initialization sequence. (gcc_init_libintl): New function. * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL; otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn off NLS. Add multiple include guard. No need to #ifdef-guard an #undef. Prototype gcc_init_libintl here. * collect2.c (main), cppmain.c (general_init), gcc.c (main), gcov.c (main), protoize.c (main), toplev.c (toplev_main): Use gcc_init_libintl. intl: * Makefile.in: Don't copy libgnuintl.h anywhere. From-SVN: r46348
Diffstat (limited to 'gcc/gcov.c')
-rw-r--r--gcc/gcov.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/gcc/gcov.c b/gcc/gcov.c
index dbafe81..7386b01 100644
--- a/gcc/gcov.c
+++ b/gcc/gcov.c
@@ -243,18 +243,7 @@ main (argc, argv)
int argc;
char **argv;
{
-/* LC_CTYPE determines the character set used by the terminal so it has be set
- to output messages correctly. */
-
-#ifdef HAVE_LC_MESSAGES
- setlocale (LC_CTYPE, "");
- setlocale (LC_MESSAGES, "");
-#else
- setlocale (LC_ALL, "");
-#endif
-
- (void) bindtextdomain (PACKAGE, localedir);
- (void) textdomain (PACKAGE);
+ gcc_init_libintl ();
process_args (argc, argv);