summaryrefslogtreecommitdiff
path: root/gcc/cppmain.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-19 15:17:39 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-19 15:17:39 +0000
commiteb7186891856a0581365fb285ab212f91b1d2ac7 (patch)
tree081319da8a2e78a4efbfcb39e1acf6aca8752c83 /gcc/cppmain.c
parentaf12f29db9b76408d5225feb09ee477ca2a8dacb (diff)
downloadgcc-eb7186891856a0581365fb285ab212f91b1d2ac7.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46348 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppmain.c')
-rw-r--r--gcc/cppmain.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/gcc/cppmain.c b/gcc/cppmain.c
index a70b41732ae..246c1522ab2 100644
--- a/gcc/cppmain.c
+++ b/gcc/cppmain.c
@@ -100,18 +100,7 @@ general_init (argv0)
xmalloc_set_program_name (progname);
-/* LC_CTYPE determines the character set used by the terminal so it
- has to 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 ();
}
/* Handle switches, preprocess and output. */